Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
OpenOffice.org and Java
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64
View previous topic :: View next topic  
Author Message
prosario_2000
Tux's lil' helper
Tux's lil' helper


Joined: 26 May 2003
Posts: 105
Location: San Juan, Puerto Rico

PostPosted: Mon Jul 09, 2007 1:04 am    Post subject: OpenOffice.org and Java Reply with quote

Hi, I have compiled OpenOffice.org with java flag, however, when I go to "Tools">>"Options">>"OpenOffice.org">>"Java", and it seems that it does not locate any "Java Runtime Environment". I can't seem to add any, although I have Blackdown, Sun-JDK, and Sun-JRE installed. Can anyone point me what I'm doing wrong?
Back to top
View user's profile Send private message
didymos
Advocate
Advocate


Joined: 10 Oct 2005
Posts: 4798
Location: California

PostPosted: Mon Jul 09, 2007 2:40 am    Post subject: Reply with quote

Which versions of each do you have? You might want to run java-check-environment as well.
_________________
Thomas S. Howard
Back to top
View user's profile Send private message
prosario_2000
Tux's lil' helper
Tux's lil' helper


Joined: 26 May 2003
Posts: 105
Location: San Juan, Puerto Rico

PostPosted: Mon Jul 09, 2007 3:24 am    Post subject: Reply with quote

I ran java-check-environment, and this is what came out

Quote:
gnutux ~ # 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 our upgrade guide for details:
* http://www.gentoo.org/proj/en/java/java-upgrade.xml

* Checking fastjar ... [ ok ]

* 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 ]

* Checking package_env ... [ ok ]

* Java environment is sane. Congratulations!


[/quote]

About which versions I have:

blackdown-jdk: 1.4.2.03-r16
blackdown-jre: 1.4.2.03-r14
sun-jdk: 1.6.0.01
Back to top
View user's profile Send private message
didymos
Advocate
Advocate


Joined: 10 Oct 2005
Posts: 4798
Location: California

PostPosted: Mon Jul 09, 2007 7:16 am    Post subject: Reply with quote

Just to make sure, when you went into the java options dialog, how long did you leave it open? It can take a little bit of time before anything appears in the list of installed JREs.
_________________
Thomas S. Howard
Back to top
View user's profile Send private message
prosario_2000
Tux's lil' helper
Tux's lil' helper


Joined: 26 May 2003
Posts: 105
Location: San Juan, Puerto Rico

PostPosted: Mon Jul 09, 2007 7:22 am    Post subject: Reply with quote

Yes, I left it open for a long time, and nothing. They simply do not appear. I click "Add" and try to go to /opt for the different jdk directories, and it does not matter where I go or what I do, it never loads any of the Java Runtime Environments. It's curious because previous versions of OpenOffice.org used to load all the Java Runtime Environments very well. Right now, I'm not sure why this is happening.
Back to top
View user's profile Send private message
Jorgo
n00b
n00b


Joined: 18 Jun 2004
Posts: 62
Location: Bochum, Germany

PostPosted: Tue Jul 17, 2007 9:09 am    Post subject: Reply with quote

I solved the problem on my machine. The problem is that Openoffice is a
32bit and the current Java-engine ist 64bit on a multilib installation

Try the following steps:

Code:
echo "app-emulation/emul-linux-x86-java nsplugin" >> /etc/portage/package.use
emerge emul-linux-x86-java


This enables the 32bit emulation of nsplugin for firefox, and installs the 32bit emulation of Java.
After this restart Openoffice and let Openoffice seach for Java. It takes a while but it will find the
current Java in /opt/emul-linux-x86-java-1.6.0.02/

Done.

Greets Jorgo
Back to top
View user's profile Send private message
prosario_2000
Tux's lil' helper
Tux's lil' helper


Joined: 26 May 2003
Posts: 105
Location: San Juan, Puerto Rico

PostPosted: Tue Jul 17, 2007 12:58 pm    Post subject: Reply with quote

Yes, I saw that. I personally, and esthetically, prefer the 64-bit one. I am aware that 32-bit OpenOffice.org along with the java emulation does work. So, I wanted to find a way to make it work in 64-bit version. If I really need it, apparently I will have to uninstall the 64-bit version to install the 32-bit one, but it's ugly, I don't like it. :P
Back to top
View user's profile Send private message
gallinula
n00b
n00b


Joined: 27 Aug 2006
Posts: 2

PostPosted: Wed Sep 19, 2007 9:32 am    Post subject: Possible Solution Reply with quote

There is a problem with some java implementations (SUN) statically linking to older libraries.

Try adding this to package.use:

x11-libs/libX11 -xcb

emerge --newuse and try openoffice java setup again. Worked for me.

Oddly, the library issue is not supposed to affect the non-proprietary java implementations but they again show up in the vm list too.

Regards
Back to top
View user's profile Send private message
gallinula
n00b
n00b


Joined: 27 Aug 2006
Posts: 2

PostPosted: Wed Sep 19, 2007 10:53 am    Post subject: Possible Solution - update Reply with quote

If you are using compiz-fusion from the xeffects overlay then xcb enabled libX11 is required for compiz to work.
Back to top
View user's profile Send private message
dizzy
n00b
n00b


Joined: 04 Aug 2002
Posts: 50
Location: Melb.OZ.Terra.Sol

PostPosted: Sat Sep 22, 2007 1:50 am    Post subject: Reply with quote

Or you could try CFLAGS="-DNDEBUG" emerge -av1 libxcb

This lets you use the xcb USE flag, and the java stuff will still work.
Back to top
View user's profile Send private message
loftwyr
l33t
l33t


Joined: 29 Dec 2004
Posts: 970
Location: 43°38'23.62"N 79°27'8.60"W

PostPosted: Sat Sep 22, 2007 8:22 pm    Post subject: Reply with quote

Thank you! That fixed it without having to lose compiz-fusion.
_________________
My emerge --info
Have you run revdep-rebuild lately? It's in gentoolkit and it's worth a shot if things don't work well.
Celebrating 5 years of Gentoo-ing.
Back to top
View user's profile Send private message
Satan Klaus
n00b
n00b


Joined: 11 May 2005
Posts: 19

PostPosted: Mon Oct 08, 2007 4:23 pm    Post subject: Reply with quote

You can also try this:
Code:

find /opt -iname libmawt.so | grep 'xawt/libmawt.so' | xargs sed -i 's/XINERAMA/FAKEEXTN/g'


This bug is caused by improper linking of libmawt.so in JRE. See more here: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6532373
Back to top
View user's profile Send private message
walterguo
Apprentice
Apprentice


Joined: 15 Jul 2005
Posts: 155

PostPosted: Thu Apr 03, 2008 5:01 pm    Post subject: Reply with quote

Satan Klaus wrote:
You can also try this:
Code:

find /opt -iname libmawt.so | grep 'xawt/libmawt.so' | xargs sed -i 's/XINERAMA/FAKEEXTN/g'


This bug is caused by improper linking of libmawt.so in JRE. See more here: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6532373


Thank you! This is the great solutions!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on AMD64 All times are GMT
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