Making Jar files Run
I recently had to reinstall my OS, and more recently had to use a Java Application called JEdit. JEdit's installer didn't create any shortcuts for me, so I had to run JEdit from the command line by invoking it's jar file with
java -jar jEdit.jar. Since I had just installed java, it was not part of my system path yet, so I actually had to run something like this
C:\j2sdk1.4.2_02\bin\java -jar jEdit.jar, quite a pain but it got me thinking about somethings that could be done by Sun when I installed the JVM that would have made my life a lot easier.
First they could have given me the option to add C:\j2sdk1.4.2_02\bin\ to my system PATH. What java developer want's to update this every time they install in new JDK, along with the JAVA_HOME environment variable that some java apps need (like Ant)?
The second issue: why don't jar files execute when you double click them? This turns out to be a fairly easy workaround for someone who knows what they are doing, you just need to set javaw.exe to execute jar files. That is easy for a software developer, but wouldn't it be easier if the JVM did this for you when it was insatlled? Software developers could just say: download this jar file and double click it to run!
If anyone has contacts at Sun, please feel free to forward my comments to them! I'm not just complaining, I'd like to see Java easier to use and more appealing for desktop apps.
Like this? Follow me ↯Tweet Follow @pfreitag
You might also like:
- Updating Java on ColdFusion or Lucee - March 21, 2019
- Getting Size of Heap and Non Heap Memory in CFML - July 17, 2013
- Adobe Says Go Ahead and Upgrade your ColdFusion JVM - October 24, 2012
- Enabling Unlimited Strength Cryptography in ColdFusion - March 8, 2012
- What's New in Java 7? - January 18, 2011
- OutOfMemoryError - GC overhead limit exceeded - March 25, 2010
- Bea JRockit 5 JVM Released - February 22, 2005
- Java 1.5 for FreeBSD Patchset Released - February 18, 2005
to know how, enail me on: email@example.com
PLZ HELP ME
java.exe -jar %1 %
Tell NOTEPAD to save as - tell it in the save as type All Files(*.*) and in the file name area name it Javawindows.bat
REMEMBER that file location you were told to remember... save it there.
Now goto the folder where you have the jar file you want to run highlight it and right click and choose open with - tell it to open with the bat file you just made... you will have to browse to it click ok. and your ready to double click on any jar file in windows and have it open.
My problem are i am create java .jar file by help net-beans foe dist folder but i have double click in these jar file they will open as compress folder. So please give any suggestion how to create java executable file
i am working on net beans 1.6.7 using category
Mobile application i complete one projects but
when i double click on execute able jar.file it give me error failed to
load-main class manifest attribute.
Sir tell me this project is It complete or not ?.
I think i missing somethings in this project. sir
tell me how to solve this problem.And Also guide me how to make jar file for mobile which can run for mobiles. using with net beans 1.6.7
Actually I have made execute able jar files but i can`t get mobile.jar file
how can i solve this problem pls send me in firstname.lastname@example.org
plz hep me..
plz help me!!
combinations, and you should trace those LCs that can be trusted on charts tout de suite
reoccur improve of later reference. Authorized crossovers can be trusted in the chap infrastructure, and prohibited crossovers
cannot be trusted. Over again, verboten crossovers are interpreted near clashing traders who gather into work
old signals such as pivots as an access, again causing losses.
iam giving here an example
.after u creating jar file by using
jar -cfm name.jar main.class
Here name.jar is the name of jar file
Main.class is the name of the main class
After created u open by right clicking in winrar or other and change the content of
.edit in new line
Here name is the name of main class
Then save and try to re open it by double click..
Voila u hav created
java -jar QCentral.jar
Exception in thread "main" java.lang.NoClassDefFoundError:
can someone help me, where to get the JAR software for X201 nokia mobile, word, and PDF file are not accessable, what i wan is to change it JAR, but i need the software to installation.
Thank you,by advance,
C:\Program Files (x86)\JavaEmulator.com\KEmulator>java -cp KEmulator.jar emulato
Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\Program Files (x86
)\JavaEmulator.com\KEmulator\swt-win32-3346.dll: Can't load IA 32-bit .dll on a
AMD 64-bit platform
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary1(Unknown Source)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at emulator.k.a(Unknown Source)
at org.eclipse.swt.internal.Library.loadLibrary(Unknown Source)
at org.eclipse.swt.internal.C.<clinit>(Unknown Source)
at org.eclipse.swt.widgets.Display.<clinit>(Unknown Source)
at emulator.ui.swt.aK.<init>(Unknown Source)
at emulator.Emulator.main(Unknown Source)
I tried to run KEmulator in manny ways, but still can't spot the error.. Please e-mail me asap... :)