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.
perfect_tranquilityAsked:
Who is Participating?
 
JugglerWConnect With a Mentor Commented:
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
 
CEHJConnect With a Mentor Commented:
You can also place it in your Java extensions directory. That way, you don't have to bother about the classpath
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.