I. For Ubuntu configuration JAVA environment networking in the terminal input command $ sudoapt-getinstallsun-java6-jresun-java6-sdk this command can help download and install JAVA6, By the way to the browser to install JAVA support: $ the sudoapt-getinstallsun-java6-plugin needs to write system variables after these three are installed: $ sudogedit/etc/environme
1. Configure the JAVA environment for Ubuntu
Enter commands on the terminal when connected
$ Sudo apt-get install sun-java6-jre sun-java6-sdk
This command can help you download and install JAVA 6. By the way, you can install JAVA support in the browser:
$ Sudo apt-get install sun-java6-plugin
After installing the three variables, you need to write the system variables:
$ Sudo gedit/etc/environment
Write the following two lines in the Text Editor:
CLASSPATH =.:/usr/lib/jvm/java-6-sun/lib
JAVA_HOME =/usr/lib/jvm/java-6-sun
We also need to adjust the priority of system virtual machines:
$ Sudo gedit/etc/jvm
Write the following sentence at the top of the Text Editor:
/Usr/lib/jvm/java-6-sun
Enter the following command in the terminal:
$ Java-version
The terminal should return the following words:
Java version "1.6.0 _ 03"
Java (TM) SE Runtime Environment (build 1.6.0 _ 03-b05)
Java HotSpot (TM) Server VM (build 1.6.0 _ 03-b05, mixed mode)
This indicates that the JAVA environment has been established. You can use a text editor to write a JAVA HelloWorld! The program executes javac compilation and java to explain the execution and see the result.
Ii. install and configure Eclipse
First, create a directory in your main folder (/home/[your name]) to store Eclipse, on damnhe my machine, a JAVA directory is created under/home/damnhe.
Go to the Eclipse official website to download Eclipse. The latest version is 3.4:
Http://www.eclipse.org/downloads/
Shixinyu I downloaded the Eclipse Classic 3.4 version.
After downloading the downloaded compressed file, you can directly decompress its folder eclipse to/home/[your name]/JAVA, and double-click to execute eclipse
2. Install Google Plugin
The installation address is as follows:
Http://code.google.com/intl/zh-CN/eclipse/docs/install-eclipse-3.4.html