Running a jar from a command line in Windows

C

Curt Tabor

Hello,

I am having trouble running a jar from a commind line in Windows. The
command is something like:

java -jar main.jar -classpath jar1.jar;jar2.jar etc.

All required jars are in the directory I'm running from and I get a
NoClassDefFoundError on a class that I know is in 1 of my jars.

What am doing wrong?

Thanks

Curt
 
T

Thomas Fritsch

Curt said:
I am having trouble running a jar from a commind line in Windows. The
command is something like:

java -jar main.jar -classpath jar1.jar;jar2.jar etc.

All required jars are in the directory I'm running from and I get a
NoClassDefFoundError on a class that I know is in 1 of my jars.

What am doing wrong?
You can't use "-classpath" together with "-jar".
See http://groups.google.de/[email protected]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top