This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I guess I have to set the jdk to the path where the "applets" are (per the instructor's direction) so how do I do that? And what is that plain "bin" file with no path?
You need to set the PATH to c:\program files\java\jdk1.5.0_04\bin and your CLASSPATH to the path where your "applets" are (it looks like you are putting them in c:\applets). PATH is not equal to CLASSPATH.
Don't worry about the other bin files. You don't need them for what you are doing now. [ August 27, 2005: Message edited by: Marilyn de Queiroz ]
JavaBeginnersFaq "Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
M Jessie Barczak
Joined: Aug 24, 2005
Understand path. don't understand classpath is that another step? instructor doesn't mention classpath. MJB
Originally posted by M Jessie Barczak: I already did the path setting in the same directory (c:\applets) and it still does not recognize the JAVAC command.
What is happening to cause it to not recognize the javac command?
The "C:\applets" directory should NOT be included in the PATH variable. You should only include the bin directory that contains the "java.exe" file. In your case it looks like you need to make sure the PATH variable includes "c:\program files\java\jdk1.5.0_04\bin".
Originally posted by M Jessie Barczak: I guess I have to set the jdk to the path where the "applets" are (per the instructor's direction) so how do I do that?
Understand path. don't understand classpath is that another step? instructor doesn't mention classpath.
Yes, classpath is another step. If the instructor hasn't mentioned it, don't worry about it. I'd like to know exactly what the instructor's direction was, because I don't understand what you have said ("set the jdk to the path where the 'applets' are").
You either need to set (add to) your path (globally in your environment settings) to c:\program files\java\jdk1.5.0_04\bin or you need to type it each time you compile.
For example, C:\applets\>c:\program files\java\jdk1.5.0_04\bin\javac MyApplet.java