digitalzero
06-10-2003, 01:48 PM
Hi all,
Could someone please help me with the Jar File. I've read the JAR tutorial in Sun and tried to play around with it.. still no luck
Say I have three class:
1. Person.class
2. Car.class
3. Main.class (contain public static void main(String args[])
How can I create the jar file to be:
Simulator.jar
I tried:
jar cvf Simulator.jar Person.class Car.class Main.class
The problem is, I have no idea how to edit the Manifest file. I tried adding:
Main-Class: Main.class
on the top and that doesn work. It says IOException erro.
Any ideas anyone?
Could someone please help me with the Jar File. I've read the JAR tutorial in Sun and tried to play around with it.. still no luck
Say I have three class:
1. Person.class
2. Car.class
3. Main.class (contain public static void main(String args[])
How can I create the jar file to be:
Simulator.jar
I tried:
jar cvf Simulator.jar Person.class Car.class Main.class
The problem is, I have no idea how to edit the Manifest file. I tried adding:
Main-Class: Main.class
on the top and that doesn work. It says IOException erro.
Any ideas anyone?