In this section we will learn from where we can download jdk 1.6 and how we can install it. There are following link from where you can download and install jdk1.6 from following link .For download you just keep in mind only one think the version of your JDK should be 1.6 and OS version and its 64 byte or 32 .
You can download different updates available also. Only developers and Enterprise administrators should download these releases.
- Open the Java SE Download page with this url:
- Click the download button next to "JDK 6u2". You will see a new page with a list of different download files of JDK 6u2.
- Locate the "Windows Platform - Java(TM) SE Development Kit 6 Update 2" section.
- Click the hyper link of "Windows Offline Installation (build 06), Multi-language", which links to jdk-6u2-windows-i586-p.exe with size of 65.57 MB.
- Save jdk-6u2-windows-i586-p.exe to a temporary directory.
- Double-click on jdk-6u2-windows-i586-p.exe to start the installation wizard.
- The installation wizard will guide you to finish the installation.
- To test the installation, open a command window to try the java command. If you are getting the following output, your installation was ok:
java version "1.6.0_02"
Java(TM) SE Runtime Environment (build 1.6.0_02-b06)
Java HotSpot(TM) Client VM (build 1.6.0_02-b06, mixed mode,sharing)
Once JDK is installed, you can try to use it to compile and execute a simple Java program.
- Right click My Computer and select Properties.
- On the Advanced tab, select Environment Variables, and then edit JAVA_HOME to point to where the JDK software is located, for example, C:\Program Files\Java\jdk1.6.0_02.
JDK RPM Installation for Linux (32-bit) System Requirement:For more Detail:
Installation Instructions: This procedure installs the Java SE Runtime Environment for 32-bit Linux, using an RPM binary bundle. Some Linux distributions, such as Ubuntu, are not RPM-based. In that event, please see the self extracting installation page.
The name of the downloaded file has the following format:
- Download and check the file size on this URL:
- Become root by running the su command and entering the root password.
Extract and install the contents of the downloaded file.
Change directory to where the downloaded file is located and run these commands to first set the executable permissions and then run the binary to extract and run the RPM file:
% chmod a+x jdk-6u
Note: that the initial " ./" is required if you do not have " ." in your PATH environment variable. The script displays a binary license agreement, which you are asked to agree to before installation can proceed. Once you have agreed to the license, the install script creates and runs the file jdk-6u <version>-linux-i586.rpm in the current directory.
Note: If you want to only extract the RPM file but not install it, you can run the .bin file with the -x argument. You do not need to be root to do this.
- Delete the rpm file if you want to save disk space.
- Exit the root shell.
If you want to use Java within the browser, setup the plugin using the instructions in Manual Plugin Installation for Linux. The RPM package creates two links: /usr/java/latest and /usr/java/default.
The /usr/java/latest link will always point to the version of Java that is considered the latest version. Subsequent upgrades of the package will overwrite this value if it is not the latest version.
By default, /usr/java/default points to /usr/java/latest. However, if administrators change /usr/java/default to point to another version of Java, subsequent package upgrades will be provided by the administrators and cannot be overwritten.
When the JDK is installed, links to javac, jar, and javadoc are also created apart from the JRE links. These links point to the appropriate tool referenced by /usr/java/default. This allows the user to easily run the default version of these Java tools.
You can download to any directory that you can write to.