JAVA installation in Linux

Source: Internet
Author: User
JAVA installation in Linux-general Linux technology-Linux programming and kernel information. The following is a detailed description. Install java on linux and record the method here

Change the name of the Java
Path:/usr/bin
Java. bak
Javac. bak
Java_cup-10.11.bak
Java_cup.bak
Install the new JAVA:
1. Run the./j2sdk-1_4_2_07-linux-i586.rpm.bin file.
2, rpm-ivh j2sdk-1_4_2_07-linux-i586.rpm for installation.
Environment variable settings (/etc/profile)
JAVA_HOME =/usr/java/j2sdk1.4.2 _ 07
PATH = $ PATH: $ JAVA_HOME/bin
CLASSPATH =.: $ JAVA_HOME/lib/dt. jar: $ JAVA_HOME/lib/tools. jar
Export JAVA_HOME PATH CLASSPATH
Export NLS_LANG = AMERICAN_CHINA.ZHS16GBK
Source/ect/profile check file
Java-version checks the java version. If it is displayed normally, it indicates that java is successfully installed.
[Root @ ecv15 nitchell] # java-version
Java version "1.4.2 _ 07"
Java (TM) 2 Runtime Environment, Standard Edition (build 1.4.2 _ 07-b05)
Java HotSpot (TM) Client VM (build 1.4.2 _ 07-b05, mixed mode)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.