• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how should i run this VALENTIN...

 
pradeep arum
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
when i tried this command i got this message....
should it be something different
C:\projects\advice>java -cp %CLASSPATH%;adviceappClient.jar adviceclient.java
Exception in thread "main" java.lang.NoClassDefFoundError: adviceclient/java
C:\projects\advice>
thanks
 
Valentin Crettaz
Gold Digger
Sheriff
Posts: 7610
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When executing a Java program with the java command, you should not include the file extension on the command line (.java or .class)
Try instead
java -classpath %CLASSPATH%;adviceappClient.jar adviceclient
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic