Therese Trudeau
2008-Mar-07 18:01 UTC
[CentOS] Problem getting Java Runtime Environment installed into OpenOffice
Hi, I'm having trouble getting my new install of OpenOffice 2.31 to find my newly installed Java Runtime Environment version jre1.6.0_04 (downloaded from Sun). I tried installing it via Tools>Options>Java (am using OpenOffice Calc to try to set it up). The options dialog box is finding the Free Software Foundation version 1.4.2, but it won't find the new JRE file. I tried clicking on Add and tried just about every directory I could think of and it's just not finding the JRE. I believe after doing a search, that the newly installed JRE is located in the /usr/java/jre1.6.0_04 directory, and went to that dir in the options dialog box in Calc, and tried every dir and sub dir in that main dir, and Calc is still is not seeing it. Can anyone please give me an idea as to how to find JRE and get it plugged in to OpenOffice? _________________________________________________________________ Climb to the top of the charts!?Play the word scramble challenge with star power. http://club.live.com/star_shuffle.aspx?icid=starshuffle_wlmailtextlink_jan
Ross S. W. Walker
2008-Mar-07 18:40 UTC
[CentOS] Problem getting Java Runtime Environment installed intoOpenOffice
Therese Trudeau wrote:> > Hi, > > I'm having trouble getting my new install of OpenOffice 2.31 > to find my newly installed Java Runtime Environment version > jre1.6.0_04 (downloaded from Sun). I tried installing it via > Tools>Options>Java (am using OpenOffice Calc to try to set it > up). The options dialog box is finding the Free Software > Foundation version 1.4.2, but it won't find the new JRE file. > > I tried clicking on Add and tried just about every directory > I could think of and it's just not finding the JRE. I > believe after doing a search, that the newly installed JRE is > located in the /usr/java/jre1.6.0_04 directory, and went to > that dir in the options dialog box in Calc, and tried every > dir and sub dir in that main dir, and Calc is still is not seeing it. > > Can anyone please give me an idea as to how to find JRE and > get it plugged in to OpenOffice?Look at the thread from today about Firefox and Java plugin. In particular the posts concerning the use of 'alternatives' -Ross ______________________________________________________________________ This e-mail, and any attachments thereto, is intended only for use by the addressee(s) named herein and may contain legally privileged and/or confidential information. If you are not the intended recipient of this e-mail, you are hereby notified that any dissemination, distribution or copying of this e-mail, and any attachments thereto, is strictly prohibited. If you have received this e-mail in error, please immediately notify the sender and permanently delete the original and any copy or printout thereof. -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3971 bytes Desc: not available URL: <http://lists.centos.org/pipermail/centos/attachments/20080307/d8237b1f/attachment-0002.bin>
Therese Trudeau
2008-Mar-07 19:18 UTC
[CentOS] Problem getting Java Runtime Environment installed intoOpenOffice
> Look at the thread from today about Firefox and Java plugin. > > In particular the posts concerning the use of 'alternatives'Hi, Thanks Ross, OK I ran your commands: # Remove Sun added links rm -f /usr/bin/javaws rm -f /usr/bin/jcontrol # Add Sun Java to alternatives alternatives --install /usr/bin/java java /usr/java/default/bin/java 1000 --slave /usr/lib/jvm/jre jre /usr/java/default --slave /usr/bin/javaws javaws /usr/java/default/bin/javaws --slave /usr/bin/jcontrol jcontrol /usr/java/default/bin/jcontrol --slave /usr/bin/rmiregistry rmiregistry /usr/java/default/bin/rmiregistry # Set Sun Java as the preferred Java environment alternatives --set java /usr/java/default/bin/java And then I rebooted, started up OpenOffice Calc again, and i'm still not finding the new JRE. And the Free Software Foundation is still showing, don't know if that matters though. Were your commands intended to get OpenOffice to automatically have the JRE show up in the dialog box? Or do I still need to hunt for it somewhere? [root at localhost bin]# /usr/sbin/alternatives --display java java - status is manual. link currently points to /usr/java/default/bin/java /usr/lib/jvm/jre-1.4.2-gcj/bin/java - priority 1420 slave javaws: (null) slave jcontrol: (null) slave keytool: /usr/lib/jvm/jre-1.4.2-gcj/bin/keytool slave rmiregistry: /usr/lib/jvm/jre-1.4.2-gcj/bin/rmiregistry slave jre_exports: /usr/lib/jvm-exports/jre-1.4.2-gcj slave jre: /usr/lib/jvm/jre-1.4.2-gcj /usr/java/default/bin/java - priority 1000 slave javaws: /usr/java/default/bin/javaws slave jcontrol: /usr/java/default/bin/jcontrol slave keytool: (null) slave rmiregistry: /usr/java/default/bin/rmiregistry slave jre_exports: (null) slave jre: /usr/java/default Current `best' version is /usr/lib/jvm/jre-1.4.2-gcj/bin/java. [root at localhost bin]# _________________________________________________________________ Climb to the top of the charts!?Play the word scramble challenge with star power. http://club.live.com/star_shuffle.aspx?icid=starshuffle_wlmailtextlink_jan