Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] OpenOffice can't find JRE
View unanswered posts
View posts from last 24 hours

rackathon
 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
g4j
Apprentice
Apprentice


Joined: 03 Jul 2004
Posts: 170
Location: Florida

PostPosted: Wed Oct 04, 2006 9:22 pm    Post subject: [SOLVED] OpenOffice can't find JRE Reply with quote

Hello,

OObase is broken on two Gento boxes, and it seems to be Java related. Everything was working fine till I did an "emerge -u world" the other month. I finally got both versions (1.4 and 1.5) of Java back up and running..

Code:
# java-config-1 -L
The following JDKs are available for generation-1:
1)      Sun JDK 1.4.2.12 [sun-jdk-1.4.2.12]
*)      Blackdown JDK 1.4.2.03 [blackdown-jdk-1.4.2.03]


# java-config-2 -L
The following VMs are available for generation-2:
1)      Blackdown JDK 1.4.2.03 [blackdown-jdk-1.4.2]
2)      Blackdown JRE 1.4.2.03 [blackdown-jre-1.4.2]
3)      Sun JDK 1.4.2.12 [sun-jdk-1.4]
*)      Sun JDK 1.5.0.08 [sun-jdk-1.5]
5)      Sun JRE 1.5.0.08 [sun-jre-bin-1.5]


# java-check-environment
 * === Java Environment Checker ===
 * The purpose of this script is to check the sanity of your Java Environment.
 * We have significantly changed and improved the way Java is handled in many respects.
 * Please refer to http://www.gentoo.org/proj/en/java/java-upgrade.xml for details

 * Checking vm_environment_files ...                                                                      [ ok ]

 * Checking user_settings ...
 * Running as root. Don't need to check user settings.                                                    [ ok ]

 * Checking generation_1_system_vm ...                                                                    [ ok ]

 * Checking virtual_provides ...                                                                          [ ok ]

 * Checking overlays_eclasses ...                                                                         [ ok ]

 * Java environment is sane. Congratulations!


Yet, when I try to configure the JRE in OpenOffice (Tools | Options | Java), no JRE's are listed. I've tried clicking on "Add" and browsing to a location, such as "/opt/sun-jdk-1.5.0.08/bin/java" but noting works. Everything in OO seems to work without Java -- EXCEPT for base which can not open anything. I really need this fixed.

Thanks in advance.


Last edited by g4j on Mon Oct 09, 2006 9:42 am; edited 1 time in total
Back to top
View user's profile Send private message
alienjon
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1408

PostPosted: Thu Oct 05, 2006 6:22 am    Post subject: Reply with quote

Is your user setting set, or just the system?
_________________
He who laughs last, laughs hardest
He who laughs hardest has milk come out of his nose
He who has milk come out of his nose gets laughed at
Can you see the catch 22 here?
Back to top
View user's profile Send private message
g4j
Apprentice
Apprentice


Joined: 03 Jul 2004
Posts: 170
Location: Florida

PostPosted: Thu Oct 05, 2006 8:11 am    Post subject: Reply with quote

Thanks for your reply, alienjon.

Java-config (1 and 2) give me the same results regardless of whether I'm logged in as root or as a user.

Here's what java-check-environment gives when logged on as a user:
Code:
$ java-check-environment
 * === Java Environment Checker ===
 * The purpose of this script is to check the sanity of your Java Environment.
 * We have significantly changed and improved the way Java is handled in many respects.
 * Please refer to http://www.gentoo.org/proj/en/java/java-upgrade.xml for details

 * Checking vm_environment_files ...                                      [ ok ]

 * Checking user_settings ...                                             [ ok ]

 * Checking generation_1_system_vm ...                                    [ ok ]

 * Checking virtual_provides ...                                          [ ok ]

 * Checking overlays_eclasses ...

*** You are not in the portage group. You may experience cache problems
*** due to permissions preventing the creation of the on-disk cache.
*** Please add this user to the portage group if you wish to use portage.
                                                                          [ ok ]

 * Java environment is sane. Congratulations!


Which appears to be ok.

Is this what you're asking?
Back to top
View user's profile Send private message
alienjon
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1408

PostPosted: Thu Oct 05, 2006 9:46 am    Post subject: Reply with quote

As user and root, please run and post the following output:

Code:

eselect java-vm list


This will tell us which virtual machine is being used for the user and the system (root). If I remember correctly, running it as user will actually tell you both, so give that one a shot first in the event that it saves you some time :)
_________________
He who laughs last, laughs hardest
He who laughs hardest has milk come out of his nose
He who has milk come out of his nose gets laughed at
Can you see the catch 22 here?
Back to top
View user's profile Send private message
g4j
Apprentice
Apprentice


Joined: 03 Jul 2004
Posts: 170
Location: Florida

PostPosted: Thu Oct 05, 2006 9:50 am    Post subject: Reply with quote

Here it is as root....
Code:
#  eselect java-vm list
Available Java Virtual Machines:
  [1]   blackdown-jdk-1.4.2
  [2]   blackdown-jre-1.4.2
  [3]   sun-jdk-1.4
  [4]   sun-jdk-1.5 system-vm
  [5]   sun-jre-bin-1.5


I get the exact same output as a user.
Back to top
View user's profile Send private message
alienjon
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1408

PostPosted: Thu Oct 05, 2006 12:57 pm    Post subject: Reply with quote

Ok, it doesn't look like you have a user vm set. Pick one of them that you want to use (I'd recommed sun-jdk-1.5) and run:

Code:

eselect java-vm set user {vm}


Here it is using my example:

Code:

eselect java-vm set user sun-jdk-1.5


Try that and let us know how it goes.
_________________
He who laughs last, laughs hardest
He who laughs hardest has milk come out of his nose
He who has milk come out of his nose gets laughed at
Can you see the catch 22 here?
Back to top
View user's profile Send private message
g4j
Apprentice
Apprentice


Joined: 03 Jul 2004
Posts: 170
Location: Florida

PostPosted: Thu Oct 05, 2006 1:14 pm    Post subject: Reply with quote

Thanks alienjon.

As I was about to run your suggested eselect command, I noticed that the user output for the previous eselect command isn't exactly the same as for root.
Code:
$ eselect java-vm list
Available Java Virtual Machines:
  [1]   blackdown-jdk-1.4.2
  [2]   blackdown-jre-1.4.2
  [3]   sun-jdk-1.4
  [4]   sun-jdk-1.5 system-vm user-vm
  [5]   sun-jre-bin-1.5

So it appears that a user VM is indeed already selected.

Just to be sure, I ran (as a user) your suggested eselect command. There was no output, and no change to the output of eselect java-vm list command. Most importantly, there is no change in OpenOffice. I still can't select a JRE.
Back to top
View user's profile Send private message
alienjon
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1408

PostPosted: Thu Oct 05, 2006 1:49 pm    Post subject: Reply with quote

Only other thing I can think of, I'm afraid, is making sure that the java support is there in the first place. Run:

Code:

emerge openoffice -pv # (or openoffice-bin, depending on whichever you are using right now)


Is the java use flag enabled?
_________________
He who laughs last, laughs hardest
He who laughs hardest has milk come out of his nose
He who has milk come out of his nose gets laughed at
Can you see the catch 22 here?
Back to top
View user's profile Send private message
g4j
Apprentice
Apprentice


Joined: 03 Jul 2004
Posts: 170
Location: Florida

PostPosted: Thu Oct 05, 2006 2:02 pm    Post subject: Reply with quote

Son of a gun! Java is disabled....
Code:
# emerge -pv openoffice

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] app-office/openoffice-2.0.3  USE="eds gtk kde pam xml -binfilter -cairo
-debug -firefox -gnome -java -ldap -mono -odk" LINGUAS="-af -ar -be_BY -bg -bn
-bs -ca -cs -cy -da -de -el -en -en_GB -en_US -en_ZA -es -et -fa -fi -fr -gu_IN -he
-hi_IN -hr -hu -it -ja -km -ko -lt -mk -nb -nl -nn -nr -ns -pa_IN -pl -pt -pt_BR -ru
-rw -sh_YU -sk -sl -sr_CS -st -sv -sw_TZ -th -tn -tr -ts -vi -xh -zh_CN -zh_TW -zu" 0 kB

Total size of downloads: 0 kB


I thought Java was a requirement for Openoffice that couldn't be disabled. I guess I was wrong. I don't look forward to rebuilding OO, but I guess that's what I need to do.

Thanks for your help, alienjon. I'll leave this thread open till the re-build is complete and I know it's solved. (That will probably take a few days.)
Back to top
View user's profile Send private message
alienjon
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1408

PostPosted: Thu Oct 05, 2006 6:46 pm    Post subject: Reply with quote

You can always go with the precompiled openoffice-bin to save time, if you want. It also has the java use flag.
_________________
He who laughs last, laughs hardest
He who laughs hardest has milk come out of his nose
He who has milk come out of his nose gets laughed at
Can you see the catch 22 here?
Back to top
View user's profile Send private message
g4j
Apprentice
Apprentice


Joined: 03 Jul 2004
Posts: 170
Location: Florida

PostPosted: Fri Oct 06, 2006 9:33 am    Post subject: Reply with quote

Well rats! Last night I remerged Openoffice-bin on my AMD-64 desktop. (The regular oo ebuild is still compiling on my x86 notebook. I don't expect it to finish till tonight or maybe tomorrow.) I still have the same problem. Even though Java was included this time, Openoffice will not recoginze any JRE.

Am I browsing to the wrong location? (I've tried many.) What path are others using for their OO Java configuration?
Back to top
View user's profile Send private message
alienjon
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1408

PostPosted: Fri Oct 06, 2006 12:43 pm    Post subject: Reply with quote

Mine is set to:

Code:

/opt/sun-jdk-1.4.2.12/jre

_________________
He who laughs last, laughs hardest
He who laughs hardest has milk come out of his nose
He who has milk come out of his nose gets laughed at
Can you see the catch 22 here?
Back to top
View user's profile Send private message
g4j
Apprentice
Apprentice


Joined: 03 Jul 2004
Posts: 170
Location: Florida

PostPosted: Fri Oct 06, 2006 12:47 pm    Post subject: Reply with quote

That looks similar to what I've tried, except I've been going to 1.5 rather than 1.4. I'll try 1.4 when I get home tonight.

Thanks again alienjon.
Back to top
View user's profile Send private message
g4j
Apprentice
Apprentice


Joined: 03 Jul 2004
Posts: 170
Location: Florida

PostPosted: Mon Oct 09, 2006 9:41 am    Post subject: Reply with quote

Recompiling with java specified seems to have done the trick. I can now select my JRE and I have regained database functionality. I'm surprised that java is not a default requirement of the e-build.

Thanks for your help, alienjon.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum