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
I think the first way is easier/simpler.
subject: Taking community college online course in Java 1