"Smart Aquarian", We're pleased to have you here with us at JavaRanch, but there are a few rules that need to be followed, and one is that proper names are required. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.
In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.
Okay, your code compiles fine for me, so let's move on to your installation of Java 1.5. What do you get when you type "javac -version" at the command line? (Without a file name, you'll get a long error message, but it should start with the version.)
...javac -version javac 1.5.0_06 javac: no source files...
My guess is that you're on a Windows machine, and you didn't adjust your PATH variable properly. See Step 5 of these installation instructions for Windows. BUT note that the system checks the PATH variable from left to right, looking for a path that will work. So if you have a path for a prior version of Java listed first, then it will use the prior version.
Joined: Aug 19, 2006
Yes, I am working on Windows XP and running the javac -version command returns: javac 1.5.0-beta javac: no source files
The step 2 of installation notes recommends to uninstall any beta versions. What do you reckon?