This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
I took java insruction over 3 years ago graduated and never used it. Now I need to edit someones code. I installed the j2eesdk-1_4_02 or windows xp and set my path. When I type "javac" at the command prompt I don't get errors and see Usage Java source file directories. But when I try to run a simple Hello Word program I see the following:
Also make sure that the class name you're trying to run matches the class name you've actually compiled. In other words use, (it looks like you might have typed java Hello by accident). [ October 07, 2005: Message edited by: Kristin Stromberg ]
Joined: Oct 07, 2005
Originally posted by Marilyn de Queiroz: Hi Michele. Welcome to JavaRanch.
It looks like you have more than one version of the j2sdk installed.
What happens if you type c:\>javac -version
What happens if you type c:\>javac -J-version
(javac -version works in Java 5)
Also, I suggest that you put C:\j2sdk1.4.2_08\bin at the BEGINNING of the PATH variable instead of the end.