- #1
rollcast
- 408
- 0
I'm trying to run a java program I coded using geany but it would let me run it as it comes up with the following error message.
So then I thought it may have been my bad coding but even when I copied a few example codes from wikipedia it still gave me the same error?
Thanks
A.
Code:
Exception in thread "main" java.lang.NoClassDefFoundError: temp
Caused by: java.lang.ClassNotFoundException: temp
at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
Could not find the main class: temp. Program will exit.
So then I thought it may have been my bad coding but even when I copied a few example codes from wikipedia it still gave me the same error?
Thanks
A.