Well my problem is as follows. Until today all my java files compiled and ran just fine, though all of a sudden today they compile and do not run instead giving me this error:
The code from said file is:Code:
Exception in thread "main" java.lang.NoClassDefFoundError: hello
Caused by: java.lang.ClassNotFoundException: hello
at java.security.AccessController.doPrivileged(Native Method)
Could not find the main class: hello. Program will exit.
As you can see very very simple bit of code due to me being very new to this.Code:
public class hello
public static void main (String args)
EDIT: After trying it in a command prompt and getting the error I decided to copy and paste the code directly into an IDE (JCreator) and it compiled and ran the code with no problems, I just can't seem to get it to work in the command prompt which is frustrating.