install sun jdk for freenet
I wanted to try freenet but it says it doesn't like the openjdk java which is by default installed with fedora.
I should get the sun jdk instead. How can I install that?
After browsing a while I downloaded a self-extracting jdk-6u23-linux-i586-rpm.bin file, which extracted + installed some rpm's. But freenet still says it's using openjdk.
- How can I see which java versions are installed on my fedora? (possibly multiple)
- How can I see which jvm is the default one? (should be still openjdk in my case)
- How can I change the default jvm so it uses the one I just installed?
Cheers & Thanks in advance
Setting up a new java :
/usr/sbin/alternatives --install /usr/bin/java java /usr/java/jdk1.6.0_23/bin/java 2
3) /usr/sbin/alternatives --config java
.. and then select the "sun" version.
The command for version check : java -version
.. Should reply : java version "1.6.0_23"
Java(TM) SE Runtime Environment (build 1.6.0_23...
Perfect, thanks! :)
Working great, freenet doesn't complain any more at all.
Seems this "alternatives" works like a version switch for arbitrary programs...
One more question, though. "alternatives" also had a lot of so-called slave-links installed for the openjdk version. However, it did't register any for my added sun version. Should I worry about that? Can it be that some things don't work properly because these links are missing?
Here's the output of alternatives --display java. Never mind the language (it's Swedish) but you can see the impressing list of null-values for my sun-java anyway:
Nothing to worry about.
|All times are GMT -5. The time now is 06:04 PM.|