AD

CentOS 5.5 install JDK

Use the following command root account JDK installation

[Root @ test /] # yum install java-1.6.0-openjdk java-1.6.0-openjdk-devel

yum install process is complete, enter java-version, JVM version 1.6.0 has been replaced to

If you are still the old version of the JVM can use the following methods to change

Execute update-alternatives - config java, select the JVM you want to replace

Then set the environment variable JAVA

Executive vi / etc / profile (you can use another editor, is not limited to use vi)

Enter the following, JAVA_HOEM enter the JDK installation path may vary

JAVA_HOME = / usr/lib/jvm/java-1.6.0
PATH = $ PATH: $ JAVA_HOME / bin
CLASSPATH =.: $ JAVA_HOME / lib / tools.jar: $ JAVA_HOME / lib / dt.jar
export PATH JAVA_HOME CLASSPATH
标签: export path, lib, path path, installation path, old version, environment variable, devel, yum, root test, jar java, java version, root account, centos
分类: OS
时间: 2011-08-23

相关文章

  1. Ubuntu install JDK, Eclipse and NetBeans

    First need to install JDK 6 sudo apt-get install sun-java6-jdk After the need to set the default java program ...
  2. In the Linux install JDK and environmental settings (

    In the Linux install JDK and environmental settings (reproduced) Fedora Core 3 I have already successfully ins ...
  3. linux install jdk and tomcat

    1, jdk jdk installed installed as: jdk-6u17-linux-x64-rpm.bin (linux under the 64-bit) 1. To upload files to l ...
  4. linux install jdk and tomcat configuration

    jdk's installed: Download jdk: jdk-6u13-linux-i586-rpm.bin, and use the rz command reached liunx in chmod comm ...
  5. Install JDK in the SuSE 10.2 environment

    http://tech.ddvip.com/2009-07/1248797450126577.html The following kind of talk about how to install JDK enviro ...
  6. VMware install jdk tomcat

    linux Install JDK Download the jdk.bin file To run the Linux folder 1. Sudo privileges conferred 2.sudo -s ./j ...
  7. (Transfer) OpenSuse install jdk \ mysql \ tomcat \ nginx \ mysql-proxy

    1. Install jdk a. go to http://java.sun.com download jdk (j2se) 1.6.0_19.bin b. # chkmod 777. / jdkxxx.bin c. ...
  8. Install JDK (change)

    Sun JDK installation is basically in two ways: 1. Through the Ubuntu package management tools provided by the ...
  9. ubuntu9.10 install JDK

    1, download to install the JDK (for example: jdk-6u10-linux-i586.bin). 2, JDK files into the directory you wan ...
  10. Linux install jdk, tomcat service steps

    First, install jdk 1. Download the JDK bin file format http://gceclub.sun.com.cn/NASApp ... 0_04-linux-i586.bi ...
  11. linux install jdk tomcat

    1, jdk jdk installed installed as: jdk-6u17-linux-x64-rpm.bin (linux under the 64-bit) 1. To upload files to l ...
  12. Ubuntu10.04 install JDK

    1, download the latest JDK 2, chmod + x jdk ····· 3,. / Jdk ····· 4, sudo gedit /etc/environment Changes in th ...
  13. Ubuntu install JDK 6 and Eclipse

    First need to install JDK 6 sudo apt-get install sun-java6-jdk After the need to set the default java program ...
  14. install jdk and eclipse ubuntu

    ubuntu version: ubuntu 10.10, jdk version: jdk-6u23-linux-i586.bin eclipse version: eclipse-jee-europa-winter- ...
  15. VPS (ubuntu server 10.04) to install JDK + Jetty, Jetty Integration and configure nginx

    1. Install JDK Download the latest version of JDK and copy to the appropriate directory: wget http://download. ...
  16. ubuntu install jdk stroke input method

    Install the firefox flash plugin http://labs.adobe.com/downloads/flashplayer10_64bit.html Download and unzip: ...
  17. ubuntu install jdk files, upload files, ssh server configuration

    ubuntu install jdk files, upload files, ssh server configuration Install ssh software apt-get install ssh If t ...
  18. CentOS comes with the jdk uninstall

    CentOS comes with the jdk ready to unload, and then loaded on their jdk. When he started already installed jdk ...
  19. ubuntu install jdk, tomcat, mysql whole process

    ubuntu install jdk Tomcat Mysql whole process First, download the JDK from SUN Then execute in the shell: Code ...