2013年9月13日星期五

linux install JDK

The first linux install jdk
follows

[root @ pst java] # chmod + x jdk-6u45-linux-i586-rpm.bin
[root @ pst java] # ./jdk-6u45-linux-i586-rpm.bin
Unpacking ...
Checksumming ...
Extracting ...
UnZipSFX 5.50 of 17 February 2002, by Info-ZIP (Zip-Bugs@lists.wku.edu).
inflating: jdk-6u45-linux-i586.rpm
inflating: sun-javadb-common-10.6.2-1.1.i386.rpm
inflating: sun-javadb-core-10.6.2-1.1.i386.rpm
inflating: sun-javadb-client-10.6.2-1.1.i386.rpm
inflating: sun-javadb-demo-10.6.2-1.1.i386.rpm
inflating: sun-javadb-docs-10.6.2-1.1.i386.rpm
inflating: sun-javadb-javadoc-10.6.2-1.1.i386.rpm
Preparing ... # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # [ 100% ]
package jdk-1.6.0_45-fcs.i586 is already installed

Done.
[root @ pst java] # rpm-ivh jdk-6u45-linux-i586.rpm
Preparing ... # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # [ 100% ]
package jdk-1.6.0_45-fcs.i586 is already installed
[root @ pst java] # java-version
bash: / usr / bin / java: No such file or directory
[root @ pst java] # cd ~ /
[root @ pst ~] # java
bash: / usr / bin / java: No such file or directory



export JAVA_HOME = / usr/local/java/jdk-1.6.0_45-fcs
export CLASSPATH = $ CLASSPATH: $ JAVA_HOME / lib: $ JAVA_HOME / jre / lib
export PATH = $ JAVA_HOME / bin: $ JAVA_HOME / jre / bin: $ PATH: $ HOMR / bin



tips have been installed, but can not find jdk-1.6.0_45-fcs.i586 command to find the version of the catalog and are inactive


------ Solution ------------------------------------ --------
under / usr with the find command to find what
------ Solution -------------- ------------------------------
seems generally in the usr / java is not under in usr / local / java

If not, look upstairs , and find find
------ Solution -------------------------- ------------------
unzipped folder name should be jdk1.6.0_45 than jdk-1.6.0_45-fcs installed before it jdk fcs not encountered the end , what fcs how to understand thank

没有评论:

发表评论