I. In friendlyarm,tiny4412, the installation package can be supplemented by:
Install the JDK (Java), select the desired JDK, or install it all . a) OpenJDK-6.0
- $ sudo apt-get update
- $ sudo apt-get install openjdk-6-jdk
b) OpenJDK-7.0
- $ sudo apt-get update
- $ sudo apt-get install openjdk-7-jdk
c) SunJDK-6.0
- $ sudo add-apt-repository "Deb Http://archive.canonical.com/ubuntu precise partner"
- $ sudo apt-get update
- $ sudo apt-get install sun-java6-jdk
d) OracleJDK-8.0
- sudo add-apt-repository Ppa:webupd8team/java
- sudo apt-get update
- sudo apt-get install Oracle-java8-installer
e) Set the default JDK
- $ sudo update-alternatives--config java
- $ sudo update-alternatives--config javac
PS) If you need to uninstall the JDK installed through Apt-get, the command is as follows
- $ sudo apt-get remove--purge XXX
Edit environment variable: sudo gedit/etc/environment
JDK version view: java-version
Installation of JDK, Eclipse, ADT, CDT, Pydev in Ubuntu 12.04 LTS (64bit) environment