본문 바로가기

공부방/Ubuntu

[Ubuntu] 자바 Jdk 설치하기

Installing Java Development Kit (JDK) on Ubuntu

There’re many JDK available thesedays. One of the most popular – open source jdk is openjdk. OpenJDK is well compatible with Ubuntu/Linux and it is available in official repository – so you can install it a click.

install openjdk on Ubuntu 11.10

Open a terminal (Ctrl+Alt+t) and execute the command(s) -

sudo apt-get install openjdk-7-jdk

OR you can install sunjdk

Update1 : The sun jdk isn’t included with the official repository, so you first need to add a PPA for that; Thanks to Casier :) .

sudo add-apt-repository ppa:ferramroberto/java
sudo apt-get update
sudo apt-get install sun-java6-jdk sun-java6-plugin

That’s All..have fun in programming in Java, with Ubuntu!