Download and configure JDK and linuxjdk through linux Command lines
Jdk download list
Command
sudo wget http://download.oracle.com/otn-pub/java/jdk/7u67-b01/jdk-7u67-linux-i586.tar.gz?AuthParam=1410326306_b52dd588bcf28e5ea19c9fb8dbce21d9 -O jdk-7u67.tar.gz
wget http://mirror.bit.edu.cn/apache/tomcat/tomcat-7/v7.0.55/bin/apache-tomcat-7.0.55.tar.gz -O apache-tomcat-7.0.55.tar.gz
Decompress directory mkdir javamkdir jdk7tar zxvf/alidata/soft/jdk-7u67.tar.gz-C/usr/java/jdk7/Open <span> VI ~ with the vi Editor ~ </Span> <span>/</span> <span>. bashrc </span> Configure the environment variable export JAVA_HOME =/usr/java/jdk7export JRE_HOME =$ {JAVA_HOME}/jreexport CLASSPATH =.: $ {JAVA_HOME}/lib :$ {JRE_HOME}/libexport PATH =$ {JAVA_HOME}/bin: $ PATH <p> Save and exit, enter the following command to make it take effect <span> source </span> <span> ~ </Span> <span>/</span> <span>. bashrc </span> </p> test <div style = ""> <div style = ""> <span> java </span> <span>-</span> <span> version </span> </div>
Install, configure, and configure JDK for Linux on the Java Development Platform in Linux environment. Make sure that you enter
System centos
Download Software
Jdk-6u20-ea-bin-b02-linux-i586-01_apr_2010.bin
#### Set the JDK Environment
Chmod a + x jdk-6u20-ea-bin-b02-linux-i586-01_apr_2010.bin
/Jdk-6u20-ea-bin-b02-linux-i586-01_apr_2010.bin
Yes
Decompress the package and set the environment variables:
Vi/etc/profile
Export JAVA_HOME =/usr/local/jdk1.6.0 _ 20
Export JRE_HOME =/usr/local/jdk1.6.0 _ 20/jre
Export PATH = $ PATH: $ JAVA_HOME/bin
Export CLASSPATH =.: $ JAVA_HOME/lib/tools. jar: $ JAVA_HOME/lib/rt. jar
This text segment is before unset after done.
Run source/etc/profile
View the java version:
Java-version echo the following information:
Java version "1.6.0 _ 20-ea"
Java (TM) SE Runtime Environment (build 1.6.0 _ 20-ea-b02)
Java HotSpot (TM) Client VM (build 17.0-b12, mixed mode, sharing)
The preceding message is successfully returned.
Why is an error always reported when jdk is installed in the Linux Command Line?
If you configure the Yum server, no error will be reported during installation.