decided to teach myself a programming language and settled on java
the first program i have is the one they teach everyone to start with:
I compile in the command prompt:
javac HelloWorld.java
and it comes back just fine (creating the file: HelloWorld.class)
now I enter into the command prompt:
java HelloWorld
and get: "Error: Could not find or load main class HelloWorld"
...
help plox!
the first program i have is the one they teach everyone to start with:
Code:
public class HelloWorld { public static void main(String[] args) { System.out.println("Hello World"); } }
javac HelloWorld.java
and it comes back just fine (creating the file: HelloWorld.class)
now I enter into the command prompt:
java HelloWorld
and get: "Error: Could not find or load main class HelloWorld"
...
help plox!