0

As a programmer I use java for learning to code in Netbeans. I installed Sun java 6 long time ago over openJDK that came with my ubuntu just cause it seemed more responsive...

Now that oracle left the repos I wanted something easy to handle to install and uninstall, so I want to Remove completely sun java 6 from my computer and set as default OPENjdk....and openjre.

I already have installed OpenJDK and OPENjre...but not marked as default.

Besides I want to clean Sun java from here, dont wanna get messy ^^.

Running ubuntu 11.10

Lekensteyn
  • 178,446

2 Answers2

1

In terminal try the following commands:

$ sudo apt-get purge sun-java6-jre:amd64 sun-java6-jre:i386
$ sudo apt-get install openjdk-6-jre
jokerdino
  • 41,732
Egm
  • 11
0

Not quite sure what the package names are (investigate using Synaptic), but something along the lines of:

apt-get purge sun-java6-jre
apt-get install openjdk-6-jre

should do the trick. apt should take care of all the configurating and resetting the default java to openjdk.