I have been using eclipse as my IDE for Java programming but I cannot figure out what is going on. I'm compiling a simply Hello World program but it won't run outside Eclipse. I have googled this problem for hours and tried many solutions but nothing has worked.
Code:
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello World");
}
}
Error:
Works fine in Eclipse: