Install JDK manually in Ubuntu

Source: Internet
Author: User

Ubuntu is installed, and my Java development environment is installed. JDK is installed first. Google, the method to install JDK is

Sudo apt-get install sun-java5-jre sun-java5-jdk

I did the same, but I don't know why the network is so slow. Why is this 8-), so I decided to install JDK manually.

  1. Download a JDK jdk-1_5_0_17-linux-i586.bin under Linux from Sun's website
  2. My JDK installation directory is in/usr/java
  3. Execute./jdk-1_5_0_17-linux-i586.bin on the terminal
  4. Run mv jdk1.5.0 _ 17 // usr/java on the terminal
  5. Configure JAVA_HOME and CLASSPATH and run sudo gedit/etc/profile to add
    • # Set java environment
    • Export JAVA_HOME =/usr/java/jdk1.5.0 _ 17
    • Export PATH = $ JAVA_HOME/bin: $ PATH
    • Export CLASSPATH =.: $ JAVA_HOME/lib/dt. jar: $ JAVA_HOME/lib/tools. jar
  6. Save the file and restart Ubuntu. Run java-version on the terminal after startup. If the following information appears, the JDK is successfully installed.
    • Java (TM) 2 Runtime Environment, Standard Edition (build 1.5.0 _ 17-b04)
      Java HotSpot (TM) Server VM (build 1.5.0 _ 17-b04, mixed mode)

So far, JDK manual installation is complete.

Then, decompress the downloaded linux version Eclipse3.42 to/usr/java, and install Eclipse. Then install the Eclipse plug-in I downloaded.

OK. You can proceed with Java development.

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.