• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to set classpath in DOS

 
Hrishikesh Maluskar
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Pranav Bhatt
Ranch Hand
Posts: 284
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check this out
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic