Sun Java: Difference between revisions
(Created page with 'This is a guide to installing the Sun Java Runtime Environment onto a Fedora 11 build for the XO. ==Candidates== Candidate laptops for fo…') |
|||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
This is a guide to installing the Sun Java Runtime Environment onto a [[F11_for_1.5|Fedora 11 build]] for the [[Hardware#XO Laptop|XO]]. |
This is a guide to installing the [http://java.sun.com/javase/index.jsp Sun Java Runtime Environment] onto a [[F11_for_1.5|Fedora 11 build]] for the [[Hardware#XO Laptop|XO]]. |
||
==Candidates== |
==Candidates== |
||
Line 9: | Line 9: | ||
This is not [http://en.wikipedia.org/wiki/Open_source open source software]. [http://openjdk.java.net/ OpenJDK] is the version that Fedora and OLPC officially [[Java|recommend for installation]]. |
This is not [http://en.wikipedia.org/wiki/Open_source open source software]. [http://openjdk.java.net/ OpenJDK] is the version that Fedora and OLPC officially [[Java|recommend for installation]]. |
||
Sun's Java Runtime Environment works with Firefox, but not with the Browser activity in Sugar. |
|||
==Install Procedure== |
==Install Procedure== |
||
Line 21: | Line 21: | ||
$ su |
$ su |
||
# sh jre- |
# sh jre-6u18-linux-i586-rpm.bin |
||
You will have to space through the license agreement and then type 'yes'. You should see the RPM being installed. |
You will have to space through the license agreement and then type 'yes'. You should see the RPM being installed. |
||
===Selecting Sun Java=== |
|||
⚫ | |||
⚫ | |||
# /usr/sbin/alternatives --install /usr/bin/java java /usr/java/default/bin/java 20000 |
# /usr/sbin/alternatives --install /usr/bin/java java /usr/java/default/bin/java 20000 |
||
# /usr/sbin/alternatives --install /usr/lib/mozilla/plugins/libjavaplugin.so \ |
# /usr/sbin/alternatives --install /usr/lib/mozilla/plugins/libjavaplugin.so \ |
||
libjavaplugin.so /usr/java/default/plugin/i386/ns7/libjavaplugin_oji.so 20000 |
libjavaplugin.so /usr/java/default/plugin/i386/ns7/libjavaplugin_oji.so 20000 |
||
Note that this only has to be done once --- if you update to a newer version of the JRE, you don't need to do this again. |
|||
==Removal== |
==Removal== |
Latest revision as of 15:46, 9 July 2010
This is a guide to installing the Sun Java Runtime Environment onto a Fedora 11 build for the XO.
Candidates
Candidate laptops for following these directions are XO and XO-1.5 laptops running either the F11 for XO-1 or the F11 for 1.5 software builds.
Caveats
This is not open source software. OpenJDK is the version that Fedora and OLPC officially recommend for installation.
Sun's Java Runtime Environment works with Firefox, but not with the Browser activity in Sugar.
Install Procedure
You will need to download the Java Runtime Environment from Sun: http://java.sun.com/javase/downloads/index.jsp You want the Java SE Runtime Environment (JRE) for Linux on 32bit machines.
If you downloaded it on a computer other than the XO, place it on a USB key and insert it into the XO.
Open a terminal window on the XO, and become root. Then execute the jre install script:
$ su # sh jre-6u18-linux-i586-rpm.bin
You will have to space through the license agreement and then type 'yes'. You should see the RPM being installed.
Selecting Sun Java
By default, Fedora is set up to work with OpenJDK. To tell Fedora to use the Sun JRE instead of OpenJDK and install it into the browsers, type:
# /usr/sbin/alternatives --install /usr/bin/java java /usr/java/default/bin/java 20000 # /usr/sbin/alternatives --install /usr/lib/mozilla/plugins/libjavaplugin.so \ libjavaplugin.so /usr/java/default/plugin/i386/ns7/libjavaplugin_oji.so 20000
Note that this only has to be done once --- if you update to a newer version of the JRE, you don't need to do this again.
Removal
To tell Fedora to start using OpenJDK instead again, type:
# /usr/sbin/alternatives --config java # /usr/sbin/alternatives --config libjavaplugin.so