Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing Java JDK on Ubuntu 10.04

Tags:

java

ubuntu

Ever since I upgraded my Ubuntu from 9.10 to 10.04 I can't start Netbeans any more, because apparently they are dropping support for Java's JDK in favor of OpenJDK. Well, problem is, my IDEs won't work with OpenJDK.

apt-get install sun-java6-jdk is not working. I downloaded the Linux installation file from Sun (jdk-6u21-linux-i586.bin) and installed it, but I can't call java or javac from the terminal.

Can anyone help me here?

like image 677
NullUserException Avatar asked Jul 25 '10 00:07

NullUserException


1 Answers

Here is how you would install it.

$ sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"
$ sudo apt-get update
$ sudo apt-get install sun-java6

Good luck.

like image 74
Pablo Santa Cruz Avatar answered Oct 04 '22 00:10

Pablo Santa Cruz