Alright, I've had some trouble with trying to learn java in the past, mainly installing and using the tools that Sun Micro provides. I have found some pretty good tutorials, although if anyone thinks they know a phenomenal one feel free to mention. The main thing I'm looking for is a good, straight java compiler. I don't need a fancy-shmancy IDE, just a simple debugger/compiler.
I just need to be pointed in the right direction; I have big plans for java and my webpage.
I prefer Eclipse for developing java. You will need the JDK. Do a search on how to setup the environmental variables for java. After doing that successfully you can run java from the command line or use eclipse. Eclipse is good for debugging. Good tutorial here on getting java setup on your system.
What program are you using to run the file? Did you setup your environmental variables? Have you tried using the command line to verify that everything is working properly. READ the whole tutorial, not just bits and pieces.
__________________
||||If you are getting paid to do a job, don't ask for help on it!||||
In Eclipse, right click on your .java file in the navigation window and choose:
"run as" --> "java application"
This is the same as the ALT+SHIFT+X, J keyboard shortcut.
If you want to test it on the command line, after ensuring that you have Java installed and configured correctly you can simply use the compiler from the command line.
First, on the command line, navigate to the directory where you have your .java file.
Then type "javac MyFile.java" without the quotes.
Then type "java MyFile" again without quotes.
The javac command compiles the .java file into a .class file, and the java command runs the .class file.