Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / June 2006

Tip: Looking for answers? Try searching our database.

Running a jar from a command line in Windows

Thread view: 
Curt Tabor - 22 Jun 2006 17:46 GMT
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
Thomas Fritsch - 22 Jun 2006 18:10 GMT
> I am having trouble running a jar from a commind line in Windows. The
> command is something like:
[quoted text clipped - 5 lines]
>
> What am doing wrong?
You can't use "-classpath" together with "-jar".
See http://groups.google.de/groups?selm=1096038344.126528@igate1.ops.de

Signature

Thomas

Knute Johnson - 23 Jun 2006 03:12 GMT
>> I am having trouble running a jar from a commind line in Windows. The
>> command is something like:
[quoted text clipped - 7 lines]
> You can't use "-classpath" together with "-jar".
> See http://groups.google.de/groups?selm=1096038344.126528@igate1.ops.de

He can put a Class-Path: attribute in his main.jar however.

Signature

Knute Johnson
email s/nospam/knute/



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.