Configure the Java + Eclipse + GooglePlugin environment in Ubuntu

Source: Internet
Author: User
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

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.