How to set the default Java version
Hi all, excuse me to ask a newbie question but I've checked several FAQs and can't seem to find it out.
This is a Ubuntu Linux distribution, and I've installed NetBeans IDE, being bundled with Sun JDK 5.0. I'd like to set Sun JRE 5.0 as "default" for all applications that call "java". Currently, checking the Java version is resulting in: Quote:
Quote:
Thanks indeed! robbbert |
This may help (it was written for Red Hat distros, but should provide you with the steps);
Code:
|
thanx boss ..
i was looking for this a time ago !! the only benefit that i have from downloading the new jre was only the browser plugin !!! now i can fully use my java . :cool: |
Quote:
Håkan |
Thank you Håkan, that worked almost out-of-the-box (not only for the JRE but for the JDK, too).
There was a slight problem, "sudo fakeroot" didn't work; the error message was something like "Java setups being executed as root tend to somtimes mess up common settings". Setting up Java as an unpriviledged user on the other hand resulted in some minor problems, basically in not replacing some shared logos/images and (slightly more problematic) WebStart not being installed. Anyways, Sun Java is up and running! :p Thanks Lenard too, I could figure that would work too, and I'll remember it when stepping into other Linux distris lateron. (CentOS BTW is one of my other favorites too.) - Whew I'm a Linux geek *rofl* |
All times are GMT -5. The time now is 06:31 AM. |