When i go to run a java file from the command line i get the following error:
Exception in thread "main" java.lang.NoClassDefFoundError: Try2
Caused by: java.lang.ClassNotFoundException: Try2
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
be4 i had this problem but with the javac command.. bt now javac works fine bt typing "java" causes the these errors

java -version works though so im guessing it has something to do with the classpath or path variables?
my runtime environment is located here
C:\Program Files\Java\jre1.6.

6
nd the JDK
C:\Program Files\Java\jdk1.6.

6
if you no wt the classpath and/or path variables should be set to can u just post it? thanks
when i was looking this up i came across a new variable "JAVA_HOME" is this something i should set?