Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

JAR ARCHIVE

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
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:

808 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