JDK, Eclipse, ADT, and quick icon in Ubuntu 12.04 LTS (64bit) Environment, 12.04adt

Source: Internet
Author: User

JDK, Eclipse, ADT, and quick icon in Ubuntu 12.04 LTS (64bit) Environment, 12.04adt
1. In FriendlyARM, Tiny4412, and the installation package, you can add:
Install JDK (Java), select the required JDK, or install it all. A) OpenJDK-6.0

  1. $ Sudo apt-get update
  2. $ Sudo apt-get install openjdk-6-jdk

 

B) OpenJDK-7.0
  1. $ Sudo apt-get update
  2. $ Sudo apt-get install openjdk-7-jdk

 

C) SunJDK-6.0
  1. $ Sudo add-apt-repository "deb http://archive.canonical.com/ubuntu precise partner"
  2. $ Sudo apt-get update
  3. $ Sudo apt-get install sun-java6-jdk

 

D) OracleJDK-8.0
  1. Sudo add-apt-repository ppa: webupd8team/java
  2. Sudo apt-get update
  3. Sudo apt-get install oracle-java8-installer

 

E) set the default JDK
  1. $ Sudo update-alternatives -- config java
  2. $ Sudo update-alternatives -- config javac

 

Ps) to uninstall JDK installed using apt-get, run the following command:
  1. $ Sudo apt-get remove -- purge XXX

Download and install ADT

Unzip the package to your favorite location:

(I put it in, usr/lib/adt)

Add quick chart

Open Terminal

Input: sudo gedit/usr/share/applications/eclipse. desktop

Add:

[Desktop Entry]Encoding=UTF-8Name=eclipseComment=Eclipse IDEExec=/usr/lib/adt/adt-bundle-linux-x86_64-20140702/eclipse/eclipseIcon=/usr/lib/adt/adt-bundle-linux-x86_64-20140702/eclipse/icon.xpmTerminal=falseStartupNotify=trueType=ApplicationCategories=Application;Development;

Save it;

Exec =/usr/lib/adt/adt-bundle-linux-x86_64-20140702/eclipse

Modify the installation directory for your eclipse

 

 

Edit environment Variable: sudo gedit/etc/environment

View JDK version: java-version

 

Reference: http://www.cnblogs.com/qq19831030qq/archive/2012/05/09/2491275.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.