Install JDK in Linux

Source: Internet
Author: User

1. Download the JDK file bin format
Http://gceclub.sun.com.cn/NASApp/sme/docroot/ecommunity/management/login.jsp? Goto =/nasapp/SME/docroot/ecommunity/down. jsp? File = j2se/jdk-1_5_0_04-linux-i586.bin
2. Go to the directory where the binfile is located to chmod 755 jdk-1_5_0_04-linux-i586.bin
3. Execute./jdk-1_5_0_04-linux-i586.bin for decompression
4. Copy the decompressed folder to the/usr/Java/directory.
5. Go to the/etc/profile. d/directory.
6. Create a java. Sh File
7. open the file in the form of a text compiler and write the settings environment variable
Java_home =/usr/Java/jdk1.5.0 _ 03/***** note that the name of the folder you copied to/usr/Java/
Classpath = $ java_home/lib/tools. jar: $ java_home/lib/dt. Jar
Path = $ java_home/bin: $ path
Resin_home =/home/resin
Export java_home resin_home classpath path
8. Enter the Java command in the console. OK. You don't have to teach me the following...
If Java is not successful, it must be that your file name or folder is not copied to the corresponding path .. then try again OK?

 

 

 

 

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.