brand new boy having probs with first program

Brought a book, down loaded the zipped JDK from web site, unzipped and can not find either javac.exe or java.exe. Used note pad to write first program as per book but could not get it to run.tried to go through comand prompt but still no joy.Please help
[274 byte] By [llamaa] at [2007-10-1 22:47:53]
# 1
Was it really a zip file or an installer? If a zip, it's probably somewhere under the directory where you unzipped it.If it's an installer, look for something either off c:\, or under Program Files. It'll probably be a directory called JDK1.#.#
paulcwa at 2007-7-13 14:52:41 > top of Java-index,Developer Tools,Java Compiler...
# 2

Hello,

After you have unzipped the zipped JDK did you updated your PATH?

If you just unzip the JDK and you try to use javac.exe or java.exe outside the bin directory of the jdk then it won't work unless you

a) update your PATH to include the bin directory, or

b) you specify the path along with the command (i.e. c:\jdk\bin\javac.exe)

Hope this helps

virusakosa at 2007-7-13 14:52:41 > top of Java-index,Developer Tools,Java Compiler...
# 3
thanks but as i am the father of a 13 yr old who is doing this I have no idea what a bin directory is or how you go about changing it. If you can help it would be greatly apreciated.thanksllama
llamaa at 2007-7-13 14:52:41 > top of Java-index,Developer Tools,Java Compiler...
# 4

Hello,

Suppose you unzip the JDK in folder c:\jdk

Right click My Computer -> Select Properties -> Go to Advanced Tab (the rightmost one) -> Click Environment Variables... button

From System variables select PATH and click the Edit... button.

In Variable Value add at the end ';c:\jdk\bin' without the ''. Remember the ';'. If Variable Value is empty write 'c:\jdk\bin' (i.e. ommit the ';').

Click OK, OK, OK.

Go to Start -> Programs -> Accessories -> Command Prompt

Type java -version

It should show the jdk's version. If not then check the PATH again in case you have made a mistake.

Hope this helps

virusakosa at 2007-7-13 14:52:41 > top of Java-index,Developer Tools,Java Compiler...
# 5
I would like to add that its quite possible you downloaded JRE instead of the Java SDK. You can find the SDK (Note that the installer/zip has SDK in its name) in the downloads area, by Netbeans.Don't worry, I made the same mistake my first time around.
Ardeoa at 2007-7-13 14:52:41 > top of Java-index,Developer Tools,Java Compiler...