S
sc_wizard29
Hi everyone,
I have an executable jar file that lies in c:\lib (yes, I'm on a
windows box)... and I want to execute it from c:\
This jar file contains the following MANIFEST.MF file :
Manifest-Version: 1.0
Created-By: 1.4.2_08 (Sun Microsystems Inc.)
Main-Class: sub1.HelloWorld1
I've tried 3 different ways to execute the jar file :
C:\>java -classpath ".\lib\sub1_exec.jar" sub1.HelloWorld1
HelloWorld1.main() : hello world
C:\jar>java -jar .\lib\sub1_exec.jar
HelloWorld1.main() : hello world
C:\jar>java -classpath ".\lib\sub1_exec.jar" -jar sub1_exec.jar
Unable to access jarfile sub1_exec.jar
Can anyone explain me why the last method doesn't work ? (and what can
I do if I don't want to make it work ?)
Thanks for helping... this stuff is driving me crazy ;-)
I have an executable jar file that lies in c:\lib (yes, I'm on a
windows box)... and I want to execute it from c:\
This jar file contains the following MANIFEST.MF file :
Manifest-Version: 1.0
Created-By: 1.4.2_08 (Sun Microsystems Inc.)
Main-Class: sub1.HelloWorld1
I've tried 3 different ways to execute the jar file :
C:\>java -classpath ".\lib\sub1_exec.jar" sub1.HelloWorld1
HelloWorld1.main() : hello world
C:\jar>java -jar .\lib\sub1_exec.jar
HelloWorld1.main() : hello world
C:\jar>java -classpath ".\lib\sub1_exec.jar" -jar sub1_exec.jar
Unable to access jarfile sub1_exec.jar
Can anyone explain me why the last method doesn't work ? (and what can
I do if I don't want to make it work ?)
Thanks for helping... this stuff is driving me crazy ;-)