These directions were tested on Windows 2000 Professional, but should
Also function properly on Server and Advanced Server. Maybe even XP(?).
If this does not work, try to contact me.
1. Download the free SDK:
2. Set environment variables:
- Right click My Computer and click on Properties
- Click Advanced tab, and then the Environment Variables button
- Under User variables for Administrator, click New for two new variables:
- Variable Name = JAVA_HOME & Variable Value = C:\java
- Variable Name = JAVA_ROOT & Variable Value = C:\java\bin
- Repeat step #3 under System Variables
3. Create directory C:\java
4. Doubleclick the SDK installer..
- Chang default Destination Folder to C:\java
- Install all Components (or play with it if you like)
5. Create the directory C:\java\dev
6. Copy java.exe and javac.exe out of C:\java\bin into your dev directory
How to run your programs with this installation
- Write your programs in a text editor such as Notepad, Wordpad, Emacs, VI, Pico.
- Save them as .java files in C:\java\dev
- Open a dos prompt (Start -> Run -> Command -> "OK")
- Use the cd command to get to your dev directory. (cd c:\java\dev)
- Type javac myprogram.java to compile
- Type java myprogram to run it
If you're using Input.java, you must compile
it the first time you want it to be used. Example:
javac myprogram.java Input.java
java myprogram