misuf.blogg.se

Uninstall openjdk mac
Uninstall openjdk mac








If you want the installation to be automatic type the following: sudo echo oracle-java7-installer shared/accepted-oracle-license-v1-1 select true | sudo /usr/bin/debconf-set-selectionsĪfter that simply do the following to set the default environment variables: sudo apt-get install oracle-java7-set-default To change to it simply do the following in case you have other java alternatives: sudo update-java-alternatives -s java-7-oracle That should install the Sun Java version on your system. Sudo apt-get install oracle-java7-installer Open the terminal and type the following: sudo add-apt-repository ppa:webupd8team/java Installing Sun Java on Newer versions of Ubuntu (10.04 an above) For example if I wanted to install the openjre version 7 I would: sudo apt-get install openjdk-7-jre default-jre default-jre-headless If you want to use the java 7 version, simply change the number 6 mentioned above for 7.

uninstall openjdk mac

If you would want to use Sun then you would do this (After installation of the sun packages): sudo update-java-alternatives -s java-6-sun The name of the java alternative is the one in the left so for example openjdk would appear like this: java-6-openjdk 1061 /usr/lib/jvm/java-6-openjdkĪnd you would set the system to openjdk like this: sudo update-java-alternatives -s java-6-openjdk Sudo update-java-alternatives -l - This will show you the list of java engines you can use. If you did not remove it then you have both of them. Just to make sure)Īfter that, if you removed openjdk then you would only have sun java.

uninstall openjdk mac uninstall openjdk mac

Sudo apt-get install sun-java6-jre sun-java6-bin sun-java6-plugin sun-java6-fonts Here are the steps in the terminal which apply to versions below 10.04, since starting from 10.04 sun java has been dropped and replaced by openjre: sudo apt-get remove openjdk-6-jre default-jre default-jre-headless There was a weird problem when using openjre and the problem was solved by using the sun jre version. I had the same problem once about three years ago with Ubuntu 8.04 I think. Installing Sun Java on Older Versions of Ubuntu (9.10 and below)










Uninstall openjdk mac