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?
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.