Making Jar files Run

java

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.



Related Entries

62 people found this page useful, what do you think?

Trackbacks

Trackback Address: 24/A7A3587E580F1CCAFA84FACC39EDBB66

Comments

On 02/17/2004 at 5:48:29 AM EST Erik wrote:
1
What I did was to create a batch file, jax.bat, saying: @java -jar %1 and I put this in my java/bin folder. I then associate .jar-files with jax.bat.

On 03/02/2004 at 5:23:49 AM EST Arnold wrote:
2
can't run .jar iles in linux... can anyone help me about this?tnx

On 03/04/2004 at 6:33:24 AM EST vijaya krishna m .k wrote:
3
i am not able to schedule the jar command on linux crontab please help....

On 03/27/2004 at 5:42:12 AM EST hillbilly wrote:
4
for those on windows change the jar file type association to

"C:\Program Files\Java\j2re1.4.2_04\bin\javaw.exe" -jar "%1" %*

Change the directory to the location of the actual javaw file and be sure to include the "-jar"

On 04/19/2004 at 4:35:33 AM EDT basant wrote:
5
I am creating a jar file jar cmf SW1.txt Tset.jar SWTHelloWorld.class SWTHelloWorld.java

by executing this command, the jar files gets generated, but when i double click on the Test.jar, it gives the error,"Could not fine the main Class, program will exit". when i look at the meta-inf/manifest.mf file its ok

Manifest-Version: 1.0 Class-Path: Test1.jar Created-By: 1.4.2_03 (Sun Microsystems Inc.) Main-Class: SWTHelloWorld

but it islocate in C:\Documents and Settings\103022270\Local Settings\Temp\Manifest.mf

What could be the problem. please guide me. I am in urgent need

thanks in advance

Basant

On 05/12/2004 at 3:13:57 AM EDT dion gillard wrote:
6
From memory, the Sun install puts a copy of java.exe into the Windows directory and hence on the path.

Also, by default, the windows install provides a "Executable Jar" file type so that double clicking on a jar executes it using javaw.exe

On 05/26/2004 at 3:01:40 AM EDT umer wrote:
7
i have tried to run *.jar (game files) files with jdk1.4 but it always gives an error i.e. ("main class not found"); now HOW COULD I ENCOUNTER THIS PROBLEM, any help will be greatly apperiterited on my mail. thanks. ...

On 05/26/2004 at 3:03:55 AM EDT umer wrote:
8
i have tried to run *.jar (game files) files with jdk1.4 but it always gives an error i.e. ("main class not found"); now HOW COULD I ENCOUNTER THIS PROBLEM, any help will be greatly apperiterited on my mail. thanks. ...

On 06/21/2004 at 8:22:47 AM EDT fool wrote:
9
start it with "javaw.exe -jar bla.jar" instead of "javaw.exe bla.jar" that solves the problem

On 09/03/2004 at 12:32:42 PM EDT janet richard wrote:
10
DEAR ONE,

I AM JANET RICHARD FROM LIBERIA WEST AFRICA PRESENTLY RESIDENT IN COTE D'IVOIRE/IVORY COAST. DUE TO THE POLITICAL WAR THAT HAS CLAIMED THE LIVES OF MY PARENTS THAT CAUSED ME TO LEAVE THE COUNTRY. THEREFORE,UPON THIS BACK GROUND I AM KINDLY ASKING YOU TO HELP ME GET OUT OFF AFRICA INCLUDING THE FUND OF($7.5MILLION USD)WHICH MY FATHER DEPOSITED IN A BANK HERE IN COTE D'IVOIRE FOR SAFETY BEFORE HIS DEATH.

I AM SOLICITING FOR A GOOD AND LONG TIME RELATIONSHIP WITH YOU IN HELPING ME TO TRANSFER THIS FUND INTO YOUR ACCOUNT OR COUNTRY FOR INVESTMENT. AS YOU MAY KNOW I DON'T HAVE IDE OF INVESTMENT OR BUSINESS MATTERS. THANKS FOR YOUR UNDERSTANDING AND CO-OPERATIONS IN THIS MAIL.

I AM HOPING TO HEAR FROM YOU SOON AS POSSIBLE. RESPECTFULLY ONE. JANET RICHARD.

On 09/10/2004 at 7:54:29 AM EDT sokoboy wrote:
11
long time since post...but still I never had much problem with path. It's easy enough to set anyway.

Exectuting jar files with double click: when java jdk installs it associates the jar file with java so that double clicking will run it... but some programs (like zip utilities) change the association. So tell those programs not to open .jar files

On 12/10/2004 at 3:51:47 PM EST Anonymous wrote:
12
JANET or whatever your name is, can you stop with this kind of stupid lines, we aren't interresting, get lost!!!!

On 12/17/2004 at 1:20:44 PM EST nomad wrote:
13
I downloaded and installed java 2 runtime environment and that seemed to fix my problem. if you have trouble finding it, Email me and I'll email you the web address. Also after I installed j2re, all .jar file icon turned into microsoft word icons but still ran.

On 01/16/2005 at 4:53:29 PM EST Frankye wrote:
14
I cant use the .jar files wich software should i use, or what should i do. I tried to associate the file as hillbilly told, but it doesnt work. Can anyone help me? mail me please..thanks

On 03/31/2005 at 4:54:30 PM EST Anonymous wrote:
15
<h1>Please check the pages dedicated to- Tons of interesdting stuff!!! </h1>

On 07/13/2005 at 5:36:22 AM EDT ming wrote:
16
can you send me a java compiler in my email?

On 07/16/2005 at 4:07:56 AM EDT RaviChandran wrote:
17
hai sir, i created one package c:\jdk1.5.0\bin\pack>dir hello.java hello.class after i created 1 manifest file md meta-inf cd meta-inf c:\jdk1.5.0\bin\pack\meta-manifest.mf> mainfest-version: 1.0 main-class: hello after i xtract and then , i run it, failed to load manifest class, but jar format the file is created. plz help me,

On 08/12/2005 at 7:45:17 AM EDT suhail wrote:
18
how to create executable for java as vb executable files so that just by clicking we can connect to the output.

On 09/25/2005 at 8:47:21 AM EDT Sanket Medhi wrote:
19
I am using Linux. Typing 'java -jar mp3player.jar' brings up the player, shows me its playing, everything fine, but no sound! :-s Anybody have a solution to this?

On 10/30/2005 at 11:51:00 PM EST Microsoft User wrote:
20
Just another example of how Sun has screwed up the spread of Java. If Sun wants to compete with Microsoft, at least make creating .jar files with the NetBeans IDE work out of the box. Having to fiddle with a manifest file is ridiculous.

On 12/27/2005 at 7:16:49 AM EST Aniket Kumar wrote:
21
I am unable to bundle my java application in Jar file. It always shows the error "main-class def. not found". How can I create an self executable java Application which executes on double clicking?

On 01/28/2006 at 12:51:47 AM EST mike wrote:
22
As far as I'm concerned smart people do stupid things becuase they think everyone else is as smart as them. If that makes sense to you. Anyways I had the same problem many of you have opening and bundling java applications. It's kind of a tricky thing. Here's a link straight from the bastards who make it so hard to distribute thier own software http://java.sun.com/docs/books/tutorial/deployment/jar/manifestindex.html that will tell you a lot more than you want about the manifest files but thats the key to geting your application to run on double clicking or shit running at all as distributed software. An easier way is just to download netbeans 5.0 rc1 and it will do most of it for you all you have to do is include any libraries you want to use hope that's helpful. I have a website with a downloadable zip java .jar file at this website let me know if it is working becuase it works when i download it on my machine www.freewebs.com/verbalassasiin/index.htm

On 03/01/2006 at 7:15:15 PM EST Cobatra wrote:
23
Thank you, it's worked fine :-\ start it with "javaw.exe -jar bla.jar" instead of "javaw.exe bla.jar" that solves the problem

On 03/11/2006 at 12:22:52 AM EST sourabh wrote:
24
can u plz tell me the difference b/w jar & jad files. is there any method to run .sis files on nokia 6610

On 03/27/2006 at 9:07:43 AM EST penisbreath wrote:
25
can someone help me out. need a program that runs TAG files

On 03/30/2006 at 1:53:43 PM EST bact' wrote:
26
not sure if this is what you need

Run .jar as .exe http://bact.blogspot.com/2005/07/run-jar-as-exe.html

On 04/05/2006 at 5:33:16 AM EDT yong wrote:
27
i complete my NetBeans 4.1 project and also add jfreereport to library of NetBeans 4.1.all run the project is well.But when i use jar.file in project run in desktop,the project cannot print output,why? help me...tis so important.thanks

On 04/11/2006 at 3:36:39 PM EDT pankaj wrote:
28
C:\>cd j2sdk1.4\bin

C:\j2sdk1.4\bin>java -jar jEdit.jar Exception in thread "main" java.util.zip.ZipException: The system cannot find th e file specified at java.util.zip.ZipFile.open(Native Method) at java.util.zip.ZipFile.<init>(ZipFile.java:112) at java.util.jar.JarFile.<init>(JarFile.java:117) at java.util.jar.JarFile.<init>(JarFile.java:55)

"Hello sir plz help me for creating jar file frm java file .i typed given command but on reply got these errors."

help sir whts the problem.

On 05/05/2006 at 1:51:34 PM EDT Tc wrote:
29
PLZ help me. I got jad files that needs to be converted to jar files. I cant find a program for it. Please help me my e-mail is tclou@webail.co.za.

On 05/31/2006 at 8:39:16 AM EDT Pete wrote:
30
hi, i have nokia application installer installed on my computer and jar files are associated with it so when i try to open a jar file they open in nokia.... can someone please help

On 06/07/2006 at 3:27:23 PM EDT Anonymous wrote:
31
I wise man told me that the reason the double clicking doesn't work correctly is becuase it is only meant to work with GUI applications. He is correct if you even look at the sample applications that come with your jdk you will see that any GUI application will run on double clicking but none GUI related applications still execute but so quickly that you can't see them. One solution is to turn your jar's into executable files there are a few out there here's one I found http://mpowers.net/executor/ then you have to add an if statement something like System.out.print("Press 1 then enter to quit"); int number = scanner.nextInt(); if (number == 1) System.exit(1); }// end main at the end of your main method. That way the program won't exit until you ask the user to exit it. For help with your java homework assignments visit us at www.freewebs.com/codepalz

On 07/15/2006 at 12:51:33 AM EDT the man wrote:
32
how do you open a java game onto the pc, to play it and install it?

On 07/25/2006 at 11:26:57 PM EDT oreazamu wrote:
33
Hi there !I just figured out that you can use Launch4j to create exe file to execute jar file.This tool saved me alot!

On 07/29/2006 at 4:49:17 PM EDT sailesh wrote:
34
sir, my jar files do not work every time i double click them they say "could not find the main class: program will exit" pls help me !!!

On 08/06/2006 at 12:23:07 PM EDT abdul wrote:
35
Hi all, I have created .jar file. It is working through command line(java -jar example.jar) but it doesn't execute while I doube click. The error is listed below,

Error : "could not find the main class".

Thanks in advance!

Regards, Abdul Majid

On 08/17/2006 at 4:09:52 AM EDT MIRZA wrote:
36
Jar file should handeled care fully. 1.Main-Class: any 2.must be carrige return 3.must blank space between :& classFile

It good in Java ,but jar file should"handle with care"

warm regards mirza

On 09/25/2006 at 2:31:03 AM EDT Sree wrote:
37
Hi, any one can send why we are moving to GenericServlet to HttpServlet any reason??? So many mems saying tht GenericServlet is Protocol independent tht means Http protocol is also there in GenericServlet na .Then why we want to go to HttpServlet. and wht is the difference between GenericServlet and HttpServlet...Send me a mai to: srikanth_nlr_p@yahoo.com

Thanks in advance Srikanth.P

On 10/04/2006 at 4:54:17 AM EDT abhijit wrote:
38
i want to know ,how i run .jar file in linux,by just double clicking.

On 12/12/2006 at 2:18:37 AM EST Anonymous wrote:
39
snket plz.. sen me dat jar file i will solve...shaikhsuhaibiqbal@yahoo.com

On 12/15/2006 at 6:32:20 AM EST Ajay wrote:
40
i want know how to run .jar file in mobiles.....or tell me any websites of .jar....

On 01/01/2007 at 2:22:15 PM EST N.sreenath wrote:
41
I have created a jar file.It is executing at the command prompt well. My system is installed with jdk6.When I double click jar,it executes. After uninstallation of jdk6, jar is not running at doubleclick.

On 01/08/2007 at 4:23:37 AM EST Pijush wrote:
42
How to make a .jar file/ java exe file from .java file???

On 02/09/2007 at 4:17:27 AM EST Tushar wrote:
43
how to make a .Jar file/ Java exe in netbeans 5.0

On 04/19/2007 at 12:10:26 PM EDT z_ahangya wrote:
44
to make a .jar, use Java BlueJ. Project menu/Create jar file...

If something is missing the main class, remember that to create an exe file, you will need to have a class which contains a main method with the following signature: "public static void main()"

Greatings

On 04/19/2007 at 12:52:11 PM EDT z_ahangya wrote:
45
check this http://java.sun.com/docs/books/tutorial/deployment/jar/index.html

On 04/19/2007 at 1:14:27 PM EDT z_ahangya wrote:
46
Sorry, this is the good one:

If something is missing the main class, remember that to create an exe file, you will need to have a class which contains a main method with the following signature: "public static void main(String[] arg)"

On 04/19/2007 at 1:34:15 PM EDT z_ahangya wrote:
47
Check this as well:

http://bact.blogspot.com/2005/07/run-jar-as-exe.html

As Anonymous has written, don't forget "System.exit(1);" at the end.

On 06/01/2007 at 2:59:10 AM EDT mani wrote:
48
hi,i am new to java... now i want to add a jar file.... what should i do...

On 07/07/2007 at 5:56:01 AM EDT Nagaraj wrote:
49
Pls tell me, How to run jar game in my pc. Tell me exact Environment Variables I need to set. mail me to cnrraj@yahoo.co.in

On 07/18/2007 at 6:04:47 AM EDT someone wrote:
50
Could someone plz speak plain english and post a step by step guide on how to make a .jar file run by double clickin and email me PLZ!!! (to tech jargon)

evezhang1@yahoo.com

On 07/30/2007 at 3:56:16 AM EDT srk wrote:
51
http://www.javaworld.com/javaworld/javatips/jw-javatip127.html

read this you will get your answer

On 08/01/2007 at 2:40:00 PM EDT Anonymous wrote:
52
I am unable to handle jar files in net beans please even helpout me to how to handle jar files

On 09/27/2007 at 8:43:24 AM EDT mmm wrote:
53
no ideaaaaaaaaaa

On 10/29/2007 at 10:44:39 PM EDT shiva wrote:
54
Exception in thread "AWT-EventQueue-1" java.lang.ExceptionInInitializerError at sun.awt.shell.Win32ShellFolder2$ComTask.execute(Win32ShellFolder2.jav a:1214) at sun.awt.shell.Win32ShellFolder2.getFileSystemPath(Win32ShellFolder2.j ava:557) at sun.awt.shell.Win32ShellFolder2.composePathForCsidl(Win32ShellFolder2 .java:211) at sun.awt.shell.Win32ShellFolder2.<init>(Win32ShellFolder2.java:224) at sun.awt.shell.Win32ShellFolderManager2.getDesktop(Win32ShellFolderMan ager2.java:87) at sun.awt.shell.Win32ShellFolderManager2.get(Win32ShellFolderManager2.j ava:187) at sun.awt.shell.ShellFolder.get(ShellFolder.java:218) at javax.swing.filechooser.FileSystemView.getRoots(FileSystemView.java:3 63) at javax.swing.plaf.metal.MetalFileChooserUI.updateUseShellFolder(MetalF ileChooserUI.java:430) at javax.swing.plaf.metal.MetalFileChooserUI.installComponents(MetalFile ChooserUI.java:189) at javax.swing.plaf.basic.BasicFileChooserUI.installUI(BasicFileChooserU I.java:136) at javax.swing.plaf.metal.MetalFileChooserUI.installUI(MetalFileChooserU I.java:124) at javax.swing.JComponent.setUI(JComponent.java:673) at javax.swing.JFileChooser.updateUI(JFileChooser.java:1762) at javax.swing.JFileChooser.setup(JFileChooser.java:360) at javax.swing.JFileChooser.<init>(JFileChooser.java:333) at javax.swing.JFileChooser.<init>(JFileChooser.java:286) at ltry.actionPerformed(ltry.java:56) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:19 95) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.jav a:2318) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel .java:387) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242 ) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonL istener.java:236) at java.awt.Component.processMouseEvent(Component.java:6038) at javax.swing.JComponent.processMouseEvent(JComponent.java:3265) at java.awt.Component.processEvent(Component.java:5803) at java.awt.Container.processEvent(Container.java:2058) at java.awt.Component.dispatchEventImpl(Component.java:4410) at java.awt.Container.dispatchEventImpl(Container.java:2116) at java.awt.Component.dispatchEvent(Component.java:4240) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322 ) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)

at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916) at java.awt.Container.dispatchEventImpl(Container.java:2102) at java.awt.Component.dispatchEvent(Component.java:4240) at java.awt.EventQueue.dispatchEvent(EventQueue.java:599) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThre ad.java:273) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread. java:183) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre ad.java:173) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)

at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)

at java.awt.EventDispatchThread.run(EventDispatchThread.java:121) Caused by: java.security.AccessControlException: access denied (java.lang.Runtim ePermission shutdownHooks) at java.security.AccessControlContext.checkPermission(AccessControlConte xt.java:323) at java.security.AccessController.checkPermission(AccessController.java: 546) at java.lang.SecurityManager.checkPermission(SecurityManager.java:532) at java.lang.Runtime.addShutdownHook(Runtime.java:190) at sun.awt.shell.Win32ShellFolder2$ComTaskExecutor.<init>(Win32ShellFold er2.java:1165) at sun.awt.shell.Win32ShellFolder2$ComTaskExecutor.<clinit>(Win32ShellFo lder2.java:1156) ... 42 more

On 01/03/2008 at 8:46:26 AM EST Rajesh wrote:
55
How can i execute the jar files....??

On 02/04/2008 at 1:11:16 AM EST rohit wrote:
56
hi.. plz help me, i am not able to play mobile themes in my nokia N 91 8GB phone. it says that phone does not support .sis files so i need to play . jar files. But how cal i install or play themes in my mobile with .jar files..

Plz reply at mailin_rohit@yahoo.co.in

On 02/04/2008 at 11:44:24 PM EST Steve Basu wrote:
57
Please help me how can i run mobile java application (jar file) on my PC. i have downloaded Java software but i couldn't run it. Visit my moble java games site http://gameszone.wen.ru Mobile software site http://j2meSoft.wen9.net Mobile All downloads http://www.stevebasu.tk & http://steveonline.mix69.net

On 03/07/2008 at 8:38:01 PM EST about jar files wrote:
58
How can I run jar files on my black berry mobile. Reply me on aminves@yahoo.com

On 03/11/2008 at 11:54:50 PM EDT rocky wrote:
59
I am not able to run a .jar file.

I think there is something wrong with the environment variable. can anyone tell me what do i have give in the environment variables.

On 03/12/2008 at 1:30:36 AM EDT Steve Basu wrote:
60
Download jar file opener software free!

Download information: username: stevebasu password: 111 download link: http://stevebasu.xtgem.com/Software/Java Jar Opener by steve.mix69.net.zip

install this software & run your java file in double click. 100% working.

for all java visit http://steve.mix69.net

On 03/21/2008 at 2:27:34 AM EDT mohit wrote:
61
I am unable to handle jar files in net beans please even helpout me to how to handle jar file

On 03/21/2008 at 2:29:50 PM EDT Kelly Bell wrote:
62
I couldn't agree more. Obstacles like these has kept me from learning Java for years - I can never even get started with the environment working, much less enjoy whatever benefits are to be had, because the Sun documentation (not to mention the third-party developer docs that come with other app distros) are not comprehensive. Look - a person who already knows what they're doing isn;t going to read the readme file anyway. So please at least make the install readme understandable to a novice. It just makes sense. Arrgh. Thank you for your eloquence.

On 04/10/2008 at 1:50:39 AM EDT Rajnish wrote:
63
Failed to load main-class Manifest attribute from XYZ.jar file

On 04/10/2008 at 1:52:00 AM EDT Rajnish wrote:
64
Failed to load main-class Manifest attribute from XYZ.jar file Reply on rajnish2494@gmail.com

On 05/20/2008 at 8:49:04 PM EDT Dhariwals wrote:
65
Running a JAR by double-clicking it or using a simple command is always more convenient than having to include it in your classpath and running a specific main class. To help you do this, the JAR specification provides a Main-Class attribute for the JAR's manifest file.

On 06/15/2008 at 5:41:18 AM EDT doctor wrote:
66
my pc does not read jar files heeeelp

On 06/15/2008 at 5:46:14 AM EDT doctor wrote:
67
my pc does not read jar files heeeelp

On 06/20/2008 at 9:31:15 AM EDT rama raju wrote:
68
hoe to create a icon for jar files in netbeans

On 06/21/2008 at 1:41:44 AM EDT ketan bhavsar wrote:
69
I have created the jar file of my project in netbeans. I have also set the main class even though I get some error. like

C:\>java -jar "The_Law__Ketan__18-6.jar" Exception in thread "main" java.lang.NoClassDefFoundError: org/jdesktop/layout/G roupLayout$Group Caused by: java.lang.ClassNotFoundException: org.jdesktop.layout.GroupLayout$Gro up at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClassInternal(Unknown Source)

please give me solution

On 06/22/2008 at 8:36:57 PM EDT carymchark wrote:
70
can't download internet exp 7 - need for numerous this - says temp,jar file, etc.

On 10/14/2008 at 9:17:01 AM EDT Pranav wrote:
71
hi all, i built jar of my project. its working fine in windows but giving error - Null Peer?! Exception in Linux.

Please enlighten me on what's going on and possible workarounds.

thanks in advance!

On 10/18/2008 at 11:34:48 AM EDT Anonymous wrote:
72
These comments are one big clusterf*ck. Go find some forums, nobody's gonna answer your questions in detail in a comment.

On 11/19/2008 at 6:10:08 AM EST murali wrote:
73
i am using Linux then how to see the source jar file very very urgent

On 11/19/2008 at 6:13:55 AM EST murali wrote:
74
i am using Linux then how to see the source jar file very very urgent

On 01/08/2009 at 9:36:43 PM EST Anonymous wrote:
75
i like to run jar file in my pc can anyone help...tnx

On 02/11/2009 at 2:09:14 AM EST Ashu wrote:
76
You can run the jar files by using the command java -jar filename.jar (but make sure that java is in your PATH variable)

On 02/16/2009 at 12:45:15 AM EST Shaheen wrote:
77
Dear Sir,

Please help me to execute a jar file for running my java file and how I create a .exe file.

On 02/25/2009 at 11:45:38 PM EST rajathi wrote:
78
during run the jar file the problem exists "failed to load main class manifest attribute form"

tell me some ideas

On 03/07/2009 at 1:57:32 AM EST rohan wrote:
79
shaheen...exe is not happens in java...but yup you can run your java file by executing jar files

On 03/07/2009 at 2:39:30 AM EST Anonymous wrote:
80
i know the process to run .jar file on linux machine...for help mail me on talk2rohan@in.com

On 04/19/2009 at 11:52:58 AM EDT Anonymous wrote:
81
What's with you guys? it is not that problem go to sun web site and you will find more help

Good bye!!!!!

On 09/19/2009 at 11:34:31 PM EDT Adi wrote:
82
ANSWER for failed to load manifest attribute

On 11/11/2009 at 10:50:23 AM EST lakshimi wrote:
83
Try to leave atleast 1 empty space after the main-class attribute in manifest.txt file.

this resolves the 'failed to load manifest attribute'

On 12/04/2009 at 4:47:42 AM EST Srini wrote:
84
I use a moto Q8 , but it .does't have java in it. can anyone tell me how to install java

On 12/05/2009 at 2:31:52 AM EST RAJ wrote:
85
I tried loading pc game from net and couldnt run it after loading as it stated that the lang is missing.

On 12/24/2009 at 3:11:54 AM EST vivek dhar wrote:
86
Dear friends, you can notonly Run Jar files, but also sis files on pc.

to know how, enail me on: vivekdhar50@yahoo.com

On 01/16/2010 at 5:33:50 AM EST Owais wrote:
87
I HAVE A CHINA MOBILE (BLUETOOTH NKTEL ESERIES) I WANT TO RUN .jar FILES ON IT. PLZ HELP ME

On 01/21/2010 at 12:10:00 AM EST Ritvik Singh wrote:
88
I've many *.jar applications, but i'm unable to run these on my computer. If anyone knows to run java mobile games on computer, plese help me.

On 02/10/2010 at 10:55:22 AM EST Ben wrote:
89
How can I run or play .jar file on my mobile Blackberry 8100??? plzz help me, email me on: dick_1030@yahoo.com

tnx tnx...

On 02/10/2010 at 12:56:30 PM EST cyril wrote:
90
I created the jar file and manifest file and they all compiled well without any errors but when double click on the jar file, my pc (vista) ask for which program to use in opening the jar file. plz i need HELP !!!!!

On 02/10/2010 at 12:57:50 PM EST cyril wrote:
91
I created the jar file and manifest file and they all compiled well without any errors but when double click on the jar file, my pc (vista) ask for which program to use in opening the jar file. plz i need HELP !!!!!

On 02/13/2010 at 11:34:09 AM EST samiam wrote:
92
as many people ask for linux: how i run .jar file in linux,by just double clicking. first find the .jar file u want. then make a shortcut to it on desktop. go into properties, application and remove any ' that you may have. then put in front of the file path java -jar (make sure there is a space) then save and try, if it works, hurrah!

On 02/18/2010 at 6:17:36 AM EST Anonymous wrote:
93
Exception in thread "main" java.lang.NoClassDefFoundError: C:\jav\add2 Caused by: java.lang.ClassNotFoundException: C:\jav\add2 at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) Could not find the main class: C:\jav\add2. Program will exit.

On 03/08/2010 at 3:19:46 PM EST messori13 wrote:
94
hi friends, i am new here. i want to make jar document file for my mobile.Can you tell me how can i do this and what kind of software i need to install?

On 03/09/2010 at 10:56:30 PM EST Chevy wrote:
95
I'm trying to run a Program thing, It Won't work.. I try to open it with like java.exe or whatever. And won't work.. I really need this to work, Thanks.

On 03/30/2010 at 2:49:34 AM EDT vidhya wrote:
96
i run a jar file by clicking it..tell me how to run..It shows an error that "Failed to load Main-class manifest attribute" .

On 04/07/2010 at 4:50:18 PM EDT AK wrote:
97
I cannot launch youtube on my Blackberry Bold 9700. Please assist me on what to do

On 04/07/2010 at 4:51:52 PM EDT Joe wrote:
98
Err... it's called Google, generally takes around 5 minutes to find what you are looking for.

Isn't all this rather off topic for the content of this thread anyways?...

On 04/19/2010 at 8:39:14 PM EDT Rhondel wrote:
99
Well my jar files works fine on double clicking in windows xp and vista but in my windows 7 it gives the famous error: "could not find main class". It works on some other people's computers who also have windows 7, but it didn't work on a few other windows & computers. I don't know why. Help anyone?

On 04/19/2010 at 8:40:18 PM EDT Rhondel wrote:
100
Well my jar files works fine on double clicking in windows xp and vista but in my windows 7 it gives the famous error: "could not find main class". It works on some other people's computers who also have windows 7, but it didn't work on a few other windows & computers. I don't know why. Help anyone?

On 04/19/2010 at 8:41:11 PM EDT Rhondel wrote:
101
I just need to add that it runs from command line just fine but on double click I would get the error.

On 04/20/2010 at 10:47:01 AM EDT Anonymous wrote:
102
Hello guyz pls i have some problem with my jar file and i use netbeans IDE, after building the project i tried to open the jar on the dist folder instead i receive error msg could not find the main class program will exit pls what do i do to correct this.

On 04/20/2010 at 10:56:12 AM EDT Anonymous wrote:
103
Pls i have some problem with my jar file and i use netbeans IDE, after building the project i tried to open the jar on the dist folder instead i receive error msg could not find the main class program will exit pls what do i do to correct this.pls my e-mail mictoby007@yahoo.com for reply

On 04/20/2010 at 10:58:00 AM EDT Michael wrote:
104
Pls i have some problem with my jar file and i use netbeans IDE, after building the project i tried to open the jar on the dist folder instead i receive error msg could not find the main class program will exit pls what do i do to correct this.pls my e-mail mictoby007@yahoo.com for reply

On 05/09/2010 at 2:28:20 AM EDT vikash wrote:
105
how i run a jar file in windows 7

On 05/20/2010 at 3:56:08 PM EDT KreoeX wrote:
106
Eh, I prefer doubleclicking jar files.

On 05/28/2010 at 4:32:53 AM EDT Mohel Castorena wrote:
107
Go to where the Java folder is located and in the java ver you want to use remember that location...Next open Notepad type in notepad the following:

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.

On 06/15/2010 at 7:24:05 AM EDT Balram wrote:
108
hello 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

On 06/18/2010 at 4:40:50 AM EDT Sach wrote:
109
hi!!!

i have a jar file named as lobo.jar

when i try to execute it either through command prompt using :

java -jar lobo.jar or javaw.exe -jar lobo.jar

or by double clicking it.. it doesnt run. It is supposed to open up the lobo browser but its not. Neither it is showing any kind of error. I dont knw what to do. I will be thankful to you if you could help me regarding this prob ...

On 06/21/2010 at 7:19:24 AM EDT saikiran wrote:
110
How can i create setup file or .exe file for blackberry smartphone applications plz send me the reply

On 06/30/2010 at 2:18:32 AM EDT Rajesh Naidu wrote:
111
I need bluej projects code. please mail me at my email. thanking you.

On 07/20/2010 at 6:10:30 PM EDT xXmikeFakXx wrote:
112
I'm trying to open forum but sometimes there are no images on it :(

On 08/03/2010 at 10:31:28 AM EDT Unknown wrote:
113
Unknown message

On 08/03/2010 at 3:57:58 PM EDT Sonia Ali wrote:
114
sir 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

On 08/28/2010 at 7:52:02 AM EDT breavieshire wrote:
115
expunge pitiable wipe out see sorrowful 6

On 09/07/2010 at 8:34:47 AM EDT aman wrote:
116
I have micromax mobile . anyone tell me how can i install .jar file in my mobile from my computer.. please provide me better solution

On 09/26/2010 at 4:09:51 AM EDT Swapnil Sonawane wrote:
117
How to create executable jar file line .exe files of window.

On 09/26/2010 at 4:10:03 AM EDT Swapnil Sonawane wrote:
118
How to create executable jar file like .exe files of window.

On 11/12/2010 at 7:18:22 AM EST vdx wrote:
119
well I looked at the win7 register and the file association says ...javaw.exe -jar %1 %* and I keep getting the same error "main class not found...".

any idea?

On 01/04/2011 at 12:50:39 AM EST Ashlin wrote:
120
I have created a jar file. It executes when i execute like java -jar filename.jar but when i try to execute by double click it not executing it shows error message could not find main class c:\...filename.jar program will exit how can i solve this problem pls send me in ashlinrejo1@gmail.com

On 01/11/2011 at 4:13:57 AM EST sanaul wrote:
121
how i can install opera mini in my china mobile nony s3 model? it supports java games but it does not recognize jar or jad files of opera mini.

On 02/12/2011 at 12:35:50 PM EST dahrmendra kumar wrote:
122
i have tried to run *.jar (game files) files with jdk1.4 but it always gives an error i.e. ("main class not found"); now HOW COULD I ENCOUNTER THIS PROBLEM, any help will be greatly apperiterited on my mail. thanks. ...

On 02/28/2011 at 2:47:32 AM EST omar wrote:
123
plzz tell me how can i use attractive lookandfeel in J2SE ?? i want to give a look and feel like any media player ... plzz help .. thnxx

On 03/02/2011 at 10:39:44 AM EST Unknown wrote:
124
Unknown message

On 03/24/2011 at 8:24:41 AM EDT sanjeev jajoria wrote:
125
i can creat a jar file but when i click on it to run then an error box containing the comment: "failed to load mainclass...." something like this u no. plz hep me..

On 05/02/2011 at 4:20:14 AM EDT C M wrote:
126
I need to install a jar file, but it just open in a note pad with the coded form. how i run a jar file in windows 7 PLEASE....SEND A REPLAY

On 05/26/2011 at 9:01:08 AM EDT Bibesh manandhar wrote:
127
I want to ask you how to remove the out of memory problem.. please can send me the answer clearly??

On 05/27/2011 at 2:45:31 AM EDT Adi wrote:
128
hi.. how can i execute jar file in windows 7?? i am using java version 6 update 3.. do we require any additional software for executing jar files? how to view the contents in jar files.. help me out pls

On 05/27/2011 at 2:51:08 AM EDT Adi wrote:
129
hi.. how can i execute jar file in windows 7?? i am using java version 6 update 3.. do we require any additional software for executing jar files? how to view the contents in jar files.. help me out pls

On 06/09/2011 at 6:17:53 AM EDT Sam Ashok wrote:
130
It is easy to see the cts of a .jar file.

Just open the filewith winrar and it will show all contents what the single .jar file contains!

On 06/20/2011 at 10:59:12 AM EDT Misbah wrote:
131
I can create a .jar file in netbean 6.9 but how it can be a installable file in another computer as we install any stand alone software?

plz help me!!

On 06/25/2011 at 2:12:45 AM EDT bangaraiah wrote:
132
I have a jar file which runs in java enabled mobile. but I want to make it .exe file for security. could any help me?

On 07/02/2011 at 9:03:53 AM EDT Unknown wrote:
133
Unknown message

On 07/04/2011 at 4:47:40 AM EDT Anirban wrote:
134
hey frenzzz.... try KEmulator to run java files.... try it.... ive tried... it works...

On 07/14/2011 at 1:57:24 AM EDT sniffinna wrote:
135
The trade in could invade the regular with an willing and a parsimonious as it passes occupation the consistent and then retreats inspirit to the contradictory side after a abnormal clear and close. This means that the retail has opened and closed on each side of the raze and the steady can conditions be trusted again

On 07/18/2011 at 6:21:35 PM EDT Bavodosnund wrote:
136
These LCs start every platform in news explicitly currency 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.

On 07/25/2011 at 5:26:05 AM EDT superbatma wrote:
137
Hack again?!

On 07/31/2011 at 5:10:20 AM EDT superbatma wrote:
138
Hack again?!

On 08/01/2011 at 4:32:53 AM EDT Sabir ashraf wrote:
139
Creating running jar file>>>> 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 "manifest.mf" .edit in new line Main-class:name . Here name is the name of main class . Then save and try to re open it by double click.. Voila u hav created

On 08/17/2011 at 9:58:20 PM EDT Zesymnmumma wrote:
140
Prone two S90/Crossovers are associated with holes in the convinced where rubicund S90/Crossovers institute been birthed and the cache away away comes compliant away from to log the straight-shooting as a feasible revocation narrate, leaving behind a depths the market. Apathetic three S90/Crossovers are associated with the farthest levels and inner walls, as cordially as the verifiable clusters associated with mountainous and two-dimensional trading ranges.

On 09/09/2011 at 10:39:47 PM EDT Wipisliscomma wrote:
141
When to Bail Form of the Farm out and When to Suffer In on Additional Profits 97 candles. Aeons ago the ST proficiency passage is made and a a discontinue is placed in the reprimand exaggerated, provided the manifest oscillator indicators donation, then you should upon looking since gaps as poetically as S90/Crossovers emoluments of a conceivable profit target.

On 09/20/2011 at 7:11:19 AM EDT richa wrote:
142
I decompiled a jar made some chnages and then again recompiled using jar cmf MANIFEST.MF MYNAME.JAR *.CLASS. BUT WHEN I AM TRYING TO RUN THE JAR BY USING JAVA -JAR MYJARNAME.JAR java -jar QCentral.jar Exception in thread "main" java.lang.NoClassDefFoundError:

On 10/02/2011 at 3:33:16 PM EDT HPz wrote:
143
Why a file .jar created by Izpack installer is not executable on a PC HP c5450frm runing under Windows 7 ? On Windows Explorer this file is defined file jar and not executable file jar. Last java version is installed. This file run on two others W7 PC, on a HP p6346fr and on a Dell Inspiron 1512 without problem. On this two PC, the files are well defined as executable file jar under Windows Explorer. File Sdk-Ins.jar is under. http://h-pz.pagesperso-orange.fr/Sdk-Ins.jar

On 11/18/2011 at 12:05:38 PM EST Jeffrey Pattee wrote:
144
Thank you for your resource! I’ve just shared it.

On 12/06/2011 at 6:41:07 PM EST roland khoury wrote:
145
hello im having a problem with running the " mysql-connector-java-5.0.8-bin.jar " archive file so what could i do?

On 12/21/2011 at 11:45:00 AM EST Jishnu wrote:
146
Unable to read jar files inside a jar file. Was able to read when we put that in the same folder as jar file. What we should give in manifest file/class-path to read jar files inside that jar file

On 01/31/2012 at 3:49:12 AM EST kalyani wrote:
147
I had got an error in my weka jar file installation that denotes that main class manifest is not installed.i'm unable to recover that please send some suggestions and give a suggestion that how to install and set the classpath for the weka jar files.Thanks in advancce.

On 02/26/2012 at 10:25:41 AM EST Kiran wrote:
148
I made a form in netbeans 6.9.1 after makin it i converted that form into jar file using clean & built method after creating i double clicked on tht jar file but was nt able to execute i also tried using command prompt but was nt at able to work and yes i also tried converting that file into exe but still it dint worked what i shud do now?

On 03/17/2012 at 1:46:12 AM EDT HardScape wrote:
149
I need help running a executable jar file. I recently downloaded a program that had a executable jar file in the download, but when I extracted it only came up as a .jar file. This also wiped all of my other executebles out and just turned them into .jar files as well. Please help with a solution and thank you.

On 04/12/2012 at 3:45:58 AM EDT Ahmad Mia wrote:
150
Hello everyone,

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,

On 06/08/2012 at 2:54:40 PM EDT Das wrote:
151
Hello everyone,

I need help in opening JAR executable files on my PC. Previously i never had any problem opening executable JAR files on my PC, but since i installed Nokia Suite in my PC, i haven't been able to open them at all, except by the command prompt method (but i get irritated using that method).

Can anyone tell me how i would be able to turn back the setting so that i can easily open the JAR files.

On 12/27/2012 at 9:29:36 AM EST Atox Gatal wrote:
152
Hey, I still got an error even through this process.. C:\Program Files (x86)\JavaEmulator.com\KEmulator>java -cp KEmulator.jar emulato r.Emulator 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... :)

Post a Comment




  



Spell Checker by Foundeo

Recent Entries



foundeo


did you hack my cf?