Ubuntu10.10 configure the Java Development Environment

Source: Internet
Author: User
Many of my friends are worried about how to configure the Java Development Environment on Ubuntu10.10. Through this article, I will show you how to configure the Java Development Environment (JDK + Eclipse) in the Ubuntu system ). I am using the Ubuntu ut System Version 10.10, but these configuration steps should be available for most Ubuntu versions. Let's start with JDK. Install SunJDK1. download the latest JDK Binary Package for Linux from the official Oracle website.

Many of my friends are worried about how to configure the Java Development Environment on Ubuntu 10.10. Through this article, I will show you how to configure the Java Development Environment (JDK + Eclipse) in the Ubuntu system ). I am using the Ubuntu ut System Version 10.10, but these configuration steps should be available for most Ubuntu versions.

Let's start with JDK.

Install Sun JDK

1. download the latest JDK Binary Package for Linux from the official Oracle website. For Java 6, the file name is jdk-6u22-linux-i586.bin

2. Copy the downloaded file to the file directory where you are about to install JDK. Here I put it in/home // java/jdk-6u22-linux-i586.bin

3. Open the Terminal window and navigate to the file directory in the previous step, then enter the command: sudo sh jdk-6u22-linux-i586.bin and press Enter.

4. If the system prompts you to enter the root user password, JDK installation starts after authorization. JDK is installed in the same directory where the Binary Package is located.

The JDK installation is complete. However, we still have some work to do, that is, to set the JAVA_HOME environment variable.

Set JAVA_HOME Environment Variables

1. Go to the Nautilus File Manager (location-> main directory) and open the. bashrc file. Because this file is hidden by default, you need to use Ctrl + H to display all hidden files.

2. Add the following code snippet to the end of the. bashrc file:

Do not forget to modify the path in the first line of the above Code. Modify the path to install JDK for you.

3. Now, log out and log on again. The configuration is complete. To test whether the installation is successful, enter java-version in the Terminal to view the JDK version you have installed.

Install Eclipse

Installing Eclipse in Ubuntu is very simple. You only need to download the compressed package file from Eclipse.org and decompress it. The installation is complete. For more information, see www.linuxidc.com.

Related Article

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.