{"id":35,"date":"2021-01-12T08:58:58","date_gmt":"2021-01-12T08:58:58","guid":{"rendered":"https:\/\/veltzer.net:8890\/?p=35"},"modified":"2021-01-12T08:58:58","modified_gmt":"2021-01-12T08:58:58","slug":"switching-java-versions-on-a-debian-ubuntu-system","status":"publish","type":"post","link":"https:\/\/veltzer.net:8890\/switching-java-versions-on-a-debian-ubuntu-system\/","title":{"rendered":"Switching Java versions on a Debian\/Ubuntu system"},"content":{"rendered":"\n
I recently found some issues with the openjdk Ubuntu\/Debian default Java implementation. Specifically I had issues with their web start support (javaws). I found that the Sun implementation of Java did not have such a deficiency and the Sun implementation is available through the regular Ubuntu\/Debian package sources. I installed the Sun implementation and wanted to switch the default Java to that version.<\/p>\n\n\n\n
So what have I found out ?<\/p>\n\n\n\n
When you want to switch to the Sun implementation:<\/p>\n\n\n\n
sudo update-java-alternatives --set java-6-sun<\/code><\/pre>\n\n\n\nWhen you want to go back to the openjdk implementation:<\/p>\n\n\n\n
sudo update-java-alternatives --set java-6-openjdk<\/code><\/pre>\n\n\n\nNotice that once you do any of the above you leave \u201cauto\u201d mode which means that new installation of Java implementation will not<\/strong> switch your default one. If that is what you want then ok. If not you can return to \u201cauto\u201d mode with:<\/p>\n\n\n\nsudo update-java-alternatives --auto<\/code><\/pre>\n\n\n\n<\/p>\n","protected":false},"excerpt":{"rendered":"
I recently found some issues with the openjdk Ubuntu\/Debian default Java implementation. Specifically I had issues with their web start support (javaws). I found that the Sun implementation of Java did not have such a deficiency and the Sun implementation is available through the regular Ubuntu\/Debian package sources. I installed the Sun implementation and wanted … <\/p>\n