PDA

View Full Version : Set default java compiler to sun not gnu


tarek
June 18th, 2007, 01:56 AM
Hi,

I installed eclipse from the repository and it installed java gnu. I installed sun java jdk but the default is still gnu.

How can I change the default compiler to sun's?

Thanks,
tarek

daxumaming
June 18th, 2007, 07:56 AM
Window > Preferences > Java > Installed JRE's
Go ahead and change it from there, if it's not listed, then add it from /usr/lib/jvm/java-xxx

hod139
June 18th, 2007, 09:03 AM
I wrote a howto that covers this: http://ubuntuforums.org/showthread.php?t=201378

tarek
June 18th, 2007, 11:01 AM
I wrote a howto that covers this: http://ubuntuforums.org/showthread.php?t=201378

I followed your tutorial and it worked. Thanks.