I am trying to do the usual Hello, World , as stated in one of the manuals.
class HelloWorld { public static void main(String args []) { System.out.println("Hello World"); } }
I run into the translator like this:
javac C:\Java\HelloWorld.java
Everything goes well. At least, no crash messages are displayed.
But when I already want to get the result, run like this:
java HelloWorld
Then the console displays an error:
Java helloworld
How to run it, what's the problem?
Here is the complete log of what is happening in the console:
C: \ Program Files \ Java \ jdk1.7.0_07 \ bin> javac C: \ Java \ HelloWorld.java
C: \ Program Files \ Java \ jdk1.7.0_07 \ bin> java HelloWorld
C: \ Program Files \ Java \ jdk1.7.0_07 \ bin>