Solved

JAR ARCHIVE

Posted on 2004-09-18
6
211 Views
Last Modified: 2010-03-31
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
Comment
Question by:perfect_tranquility
  • 3
6 Comments
 
LVL 7

Accepted Solution

by:
JugglerW earned 250 total points
ID: 12090981
Just set the jar file into your classpath and you can use any class in it
0
 
LVL 7

Expert Comment

by:JugglerW
ID: 12090984
Example:

set CLASSPATH=MyJar.jar;....other class path elements
0
 
LVL 7

Expert Comment

by:JugglerW
ID: 12091018
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
 
LVL 86

Assisted Solution

by:CEHJ
CEHJ earned 249 total points
ID: 12091042
You can also place it in your Java extensions directory. That way, you don't have to bother about the classpath
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
This video teaches viewers about errors in exception handling.

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now