jQuery in Action, 3rd edition
The moose likes Beginning Java and the fly likes how to set classpath in DOS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "how to set classpath in DOS" Watch "how to set classpath in DOS" New topic

how to set classpath in DOS

Hrishikesh Maluskar
Ranch Hand

Joined: Jun 19, 2008
Posts: 115
If my .class file of H.java is in a folder classes/source1/com , how to set the classpath.

when i write
java -classpath \classes\source1\com;.; H
it is giving NoClassDefFoundError

SCJP 1.5
Pranav Bhatt
Ranch Hand

Joined: Mar 20, 2006
Posts: 284
Check this out
I agree. Here's the link: http://aspose.com/file-tools
subject: how to set classpath in DOS
It's not a secret anymore!