So for some reason, my java runtime environment isn't working. For reference, I'm using ubuntu 9.04 64-bit. For a while it was working just fine, and then all of a sudden a couple of days ago, I tried to run a .class I had just compiled and I got this error:I tried removing jre, then reinstalling it, but still the problem persists. Has anyone had this problem? Does anyone know how to fix this?Code:Exception in thread "main" java.lang.NoClassDefFoundError: EmployeeTest/java Caused by: java.lang.ClassNotFoundException: EmployeeTest.java 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:307) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:252) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) Could not find the main class: EmployeeTest.java. Program will exit.
Thanks.


LinkBack URL
About LinkBacks
Reply With Quote

