File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes File.jar Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "File.jar" Watch "File.jar" New topic


Mike Shn
Ranch Hand

Joined: May 26, 2001
Posts: 149
Is it possible to run file.jar from the cmd or MS-Dos?
Also jar fro what it stands for?
Cindy Glass
"The Hood"

Joined: Sep 29, 2000
Posts: 8521
Jar stands for "Java Archive" and it is really just a zipped file containing classes.
You can execute a jar file from the command prompt if you supply a manifest file to tell the system which class has the main method in it that you want to start with.
Here is a tutorial.

"JavaRanch, where the deer and the Certified play" - David O'Meara
I agree. Here's the link:
subject: File.jar
It's not a secret anymore!