c:\Program Files\java
).
If you have Java installed in other
directories you can uninstall it and re-install it or make the
appropriate modifications to the tutorials which assume the
default location.
1.5.0_04
.
Installing Java is simple. Just run the executable file
jdk-1_5_0_04-windows-i586-p.exe
and accept all
the defaults.
This will install the java development kit version 1.5
(jdk1.5.0_04
)
and the Java runtime environment
(jre1.5.0_04
)
in directory c:\Program Files\Java
.
Your installation directory should look like
You may also have other versions of Java in this directory but the two shown above are the only ones we need.
We need both the JRE and the JDK since the documentation and java tools (javadoc for example) are only available in the JDK. [For Eclipse users the Eclipse environment uses its own compiler instead of the one in the JDK but if you are compiling Java classes outside this environment then you can use the compiler that comes with the JDK.]
zip
file
called jdk-1_5_0-doc.zip
.
You can unzip it using WinZip or the built-in Win XP facility.
When you unzip this file it is very important that you unzip it into
the directory c:\Program Files\Java\jdk1.5.0_04
(that's
jdk
not jre
.)
You should now have the
directory containing the docs
directory as shown below.
docs
directory after unzipping then
you unzipped it in the wrong place and you can move it to the correct
place.
Navigate to the following directory
(C:\Program Files\Java\jdk1.5.0_04\docs
)
index.html
on your desktop and
rename it to javadoc 1.5
.
Now navigate to the following directory
(C:\Program Files\Java\jdk1.5.0_04\docs\api
)
index.html
on your desktop
and rename it to javadoc 1.5 api
.
This link gives you the main documentation page for all the Java
classes.