Solved

JAR ARCHIVE

Posted on 2004-09-18
6
208 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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
bunnyEars challenge 6 67
Modeling a class in java 5 34
compre toata in where clue oracle 4 44
eclipse java  build path 6 25
Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

743 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

11 Experts available now in Live!

Get 1:1 Help Now