First of all, hello to everyone. This is my first post on here. I'm new to Java programming, but not a complete noob when it comes to other languages.
I'm having problems compiling anything in Java. I followed the HelloWorld tutorial found at (http://www.javaranch.com/java-college.jsp)--added the PATH, CLASSPATH, etc.--but it doesn't seem to be working.
Here's the code I entered into my editor:
public class HelloWorld { public static void main(String[] args) { System.out.println("Hello World!"); } }
Any help that you can offer would be greatly appreciated.
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35247
7
posted
0
Welcome to JavaRanch.
When executing Java programs using the "java" executable you do not specify the file name, but the class name. So instead of "java HelloWorld.class" it should be "java HelloWorld".