Java SDK (JDK) installation guide

Installation of Java differs a lot from system to system. For best guidance and results see the installation instructions for your own platform either from Sun's website or from the third party guide for your platform. Google for it!

In Windows environment this is quite simple thing to do. Just download the latest JDK and use the installer to install it. Unix/Linux users should download the "self extracking file" -version.

There are some things that are essential for a proper installation (especially in Windows).

1) JDK MUST be installed under a path that has NO spaces in it

BAD
(this is the default location)
c:\Program Files\Java\JDK_1.5.0_11
GOOD Windows
c:\java
Linux/Unix
/opt/java

1.1 Windows)

Just run the installer.

1.1. Unix/Linux

Run the downloaded jdk-*.bin file

sh jdk*.bin

Copy the resulting folder the the place where you like (eg. /opt/java)

2) JAVA_HOME environmental variable should be set to point to the JDK installation folder

3) The bin folder under the installation path should be added to the PATH environmental variable e.g. c:\java\bin

TIP:

Unix/Linux users may ease up the upgrading of Java by copying the unpacked folder resulting as

/opt/jdk-1.5.0*

Then make a symbolic link to /opt/java

ln -s /opt/jdk-1.5.0* /opt/java

Then make the path and other system references pointing to this folder. Upgrading will simple as unpacking the new version, and making the new symbolic link. Switching the version on run time can be done as quickly as that also.


Development DevelopmentToolsJava

  Page Info My Prefs Log in
This page (revision-5) last changed on 18:24 25-Mar-2017 by Mikko Wuokko.
 
JSPWiki v2.4.102
[RSS]