executing the java file
Hi there, I am relatively new to the Java expierience! I only have one problem. I am using a text editor to execute a java file (I do have eclipse, but just want to see how it works using the Command Prompt). I am working through the tutorials on the java.sun website and am currently busy with the helloworld part (http://java.sun.com/docs/books/tutor...ava/unix.html). I can compile the text file using the 'javac' command, but cannot execute the class file using the 'java' command. Attached is the error.
Thanks in advance
Welcome TBWM! :)
Have you looked over the source files? That error message appears to be telling you it's a name issue - double check your code.
See you around!
Thanks! No that's not it. Here is my .java file's contents:
public static void main(String args)
The thing is the javac command did not work at first so I had to change the Path variable to include all of the java commmands. Is it possible that the problem might be there somewhere? The tutorial tells you that you must edit the CLASSPATH variable, but I do not have one and I tried to create one, but it still didnt work
Ah.. I apologize, I assumed you already had this set. Not to start a flame war, but this is one of the reasons I love to use Linux, it makes setting this up much easier than on Windows.
I set that, but i still get the same error message as soon as I try and execute the file. And yes I am getting Ubuntu as soon as the stellenbosch network gets some life again. hehe