Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

class not found exception

 
harshada patil
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I compiled code with java version 1.6.0_21, and now I am trying to run code with jave version 1.6.0_31,
I compiled java code on windows machine and trying to run it on linux.
command:
java $JAVA_OPTS -classpath $CLASSPATH app

according to me as javac and java versions are same, what might be the problem?
 
Koen Aerts
Ranch Hand
Posts: 344
Java Linux Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do an "echo ${CLASSPATH}" and see what the values are of the CLASSPATH variable. Then verify the directories/jar files in CLASSPATH do indeed exist or whether you need to include additional jar/directories.
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It might help us help you if you posted the full exception message, then we don't have to guess which class was not found.
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic