The Artima Developer Community
Sponsored Link

Java Answers Forum
jar file need more help

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
jake

Posts: 83
Nickname: onorok
Registered: May, 2002

jar file need more help Posted: Aug 21, 2002 10:50 PM
Reply to this message Reply
Advertisement
I found this on the web and I did what it asked with Jcreator and it worked, one of the little wrenches says "create jar file" when I click on it it has some output stuff in the output window but it doesn't do anything. Also it says to make a file and add the following entry but, I don't exactly know what they mean. Can you guys help?



1. Make certain the extension .jar has been associated with javaw. This should have been set when Java was installed. If not, you must do it by hand. The appropriate line would look something like this

"C:\Program Files\JavaSoft\JRE\1.3.1\bin\javaw.exe" -jar %1

depending on your version of Java.

2. Go to JCreator and click on Configure?Options ? Find Tools and click on New. Select Make Jar files. On the left you should see an entry for making Jar files. Select it and you should see a box on the right. On the line marked Arguments: replace the letters cvf with cvmf MyManifest.mf.

Now when you go back to JCreator, run your mouse over the little wrenches. One of them should say Create Jar File. Go to the folder that has the classes for your project. Make a file called MyManifest.mf. Add the following entry to that file

Main-Class: myMainClass

where myMainClass is the name of the class that contains your main() program.

IMPORTANT. YOU MUST LEAVE A BLANK LINE AT THE END OF THE FILE OR IT WILL NOT WORK

3. Double-click the .jar file and enjoy.

Topic: how to show file upload status? Previous Topic   Next Topic Topic: java exception:Socket read failed

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use