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.