I reguard myself as highly advanced in the ability to use computers and figure things out, however I myself, including my instructor are stumped here as to why I cannot get Textpad to RUN programs on my system. Please take note that I am able to COMPILE them because I properly pointed to the javac in the /bin folder. However, when I attempt to run the .java file that I recently compiled, I always recieve this same exact error.
Mind you,I have....:ava.lang.NoClassDefFoundError: C:\Users\Dimitri\Desktop\Test/java
Caused by: java.lang.ClassNotFoundException: C:\Users\Dimitri\Desktop\Test.java
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
Could not find the main class: C:\Users\Dimitri\Desktop\Test.java. Program will exit.
Exception in thread "main"
Tool completed with exit code 1
a.) written my code propery (just a simple System.out.println statement, )
b.) named the .java file the same as my public class in the same case and everything.
c.) even tried modifiing the enviroment variables (albeit not sure if it is exactly right, I have indeed tried it, within textpad, and actually through windows.)
So, me and my Java instructor are stumped. Once again I am aware of what that exception means, and do not understand why it is happening. I am able to COMPILE but not RUN. Please help.