|
Step 1: Making a new folder
As usual, let us make a data-store to
keep all our software downloaded from internet
#mkdir /softaware
#cd /software
|
Step2: Download JRE javafrom Sun.com
Now, go to
http://java.sun.com/javase/downloads/index.jsp#jdkJavaEE, download
the latest JRE java and put it into 'software' folder. My current
version is 1.6.0_20. You version might be different.
Step3: Change the file attribute of the
downloaded file
Let is change the file mode bit /
attribute of the file. chmod +x command is change
jre-6u20-linux-i586-rpm.bin from readonly mode to executable mode.
chmod +x
jre-6u20-linux-i586-rpm.bin
|
Step3: Execute the jre*.bin file
Execute the jre*.bin file now. the
./ is to command to run the jre file at this location.
./jre-6u20-linux-i586-rpm.bin
|
After you run the above command, you will see a long list of agreement,
you must accept it. Type "yes" then press <ENTER> to start the java
installation.
|
....skip
f the Binary Code
License Agreement shall apply to all
Software in this distribution.
F. Termination for Infringement. Either party may
terminate this Agreement immediately should any Software
become, or in either party's opinion be likely to become,
the subject of a claim of infringement of any intellectual
property right.
G. Installation and Auto-Update. The Software's
installation and auto-update processes transmit a limited
amount of data to Sun (or its service provider) about those
specific processes to help Sun understand and optimize them.
Sun does not associate the data with personally identifiable
information. You can find more information about the data
Sun collects at http://java.com/data/.
For inquiries please contact: Sun Microsystems, Inc., 4150
Network Circle, Santa Clara, California 95054, U.S.A.
Do you agree to the above license terms? [yes or no]
yes
Unpacking...
Checksumming...
Extracting...
UnZipSFX 5.50 of 17 February 2002, by Info-ZIP (Zip-Bugs@lists.wku.edu).
inflating: jre-6u20-linux-i586.rpm
Preparing... ########################################### [100%]
1:jre ########################################### [100%]
Unpacking JAR files...
rt.jar...
jsse.jar...
charsets.jar...
localedata.jar...
plugin.jar...
javaws.jar...
deploy.jar...
Done.
|
Step4 : Verify your jre installation
After installation, let us check if your
java version has been installed correctly. Run "java -version" to show
if the version 1.6.0_20 JRE was installed sucessfully.
# java -version
java version "1.6.0_20"
Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
Java HotSpot(TM) Client VM (build 16.3-b01, mixed mode, sharing)
|
|