Discussion Locked

JDK on Windows XP

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

If is it passable how to install JDK on Windows XP. Pleas, discribe detail how to do it.

Thank

3 replies

by jhermiz

I'm guessing you want to know if its possible to install the Java SDK / JDK kit on an XP OS Client? Of course it is, one thing to note MS does not distribute the JRE (Java Run Time Environment) in their new OS. So the first thing to do is take a trip to SUN's website http://www.sun.com and do a search for Java SDK / Java JDK. Once found you simply download the installation package onto your PC. Run this file and once complete you need to set some environment variables in your XP box to point to javac. By default your java installation will be placed under say, C:\jsdk1.X.X\bin\..." and inside bin you will have your compiler javac.exe. When you create your java programs .java files you will need to compile these files to create the actual .class files. To do so you need access to javac from any location in a console. Meaning if you are in c:\> all you really want to do is type in javac MyJavaClass.java and have the system execute this command and compile your code. The problemis by default no environment variables are set for javac to be found. To do this simply right click on My Computer and go over to the task "Advanced" at the bottom you will see a button "Environment Variables" click on this button. Then click the "New" button and enter a name for the environment rule. You can give it any name. As a value make sure you include the complete path to the javac.exe file i.e, C:\jdk1.x.x\bin\javac.exe. Then simply click ok and restart your machine. Your machinewill now have a reference to this directory so you should be able to compile your code from any directory.

Jon

This discussion is closed to new replies.