Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 249
  • Last Modified:

JAR ARCHIVE

I just made a jar file.Let me know how to use it now.I am on the command line interface in Windows-XP.I think I have to uncompress the files in the jar file before I can proceed.Please include the jar command as it should be used now so that the compressed files can be used.
0
perfect_tranquility
Asked:
perfect_tranquility
  • 3
2 Solutions
 
JugglerWCommented:
Just set the jar file into your classpath and you can use any class in it
0
 
JugglerWCommented:
Example:

set CLASSPATH=MyJar.jar;....other class path elements
0
 
JugglerWCommented:
You may also make the jar file "executable" that mean you can define one class which should be started automatically if you double click the jar file in windows explorer. A good tutorial how to do is here:

http://csdl.ics.hawaii.edu/~johnson/613f99/modules/04/jar-files.html
0
 
CEHJCommented:
You can also place it in your Java extensions directory. That way, you don't have to bother about the classpath
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now