I have openjdk installed in my system but i want sun’s jdk in my system. I have installed sun java but all programs think that i have openjdk (including eclipse and firefox) i managed to link the sun’s jre plugin (browser ns7 plugin) in the browser plugins directory in /usr/lib/browser-plugin and now firefox finds the latest java plugin, but how do i tell eclipse and other programs to see the /usr/java/jdk1.6.0_12 ?
I am trying to use qt-integration plugin in eclicpse and it crashes as soon as I try to open the .ui file. the log shows that openjvm has crashed . how do i set the (links???) or paths so that every program see the recently installed (/usr/java/jdk1.6.0_12 and its jre ) instead of IcedTea and openjdk??
I am trying to uninstall the openJdk, and see what happens… BTW, the update-alternatives --auto did not do the trick. I guess it does but i am not good enough to know that (:P). I guess i need to add path in the commands??? (for every files there?)
First of all, please note that you don’t have to mess with things like file paths etc.
Just make sure that you have installed everything from the DVD (and/or updated from repositories).
In order to switch between different Java (JRE) versions, just type: (as root)
update-alternatives --config java
In order to switch between different Java compilers:
Ok, while doing “update-alternatives --config java”, it only shows the java installed by the yast only. I have installed java from sun (1.6.12) in /usr/java/ which is not shown there.