openoffice and base won't work because of jre problems
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
openoffice and base won't work because of jre problems
I have installed openoffice 2.4.0, and it seems to want jre-1.6.
However, as others have found, you go to tools->options->java
and it sees jre-1.4 which isn't there. If you go to "add" and put in the location of jre-1.6 it won't recognise it at all. I also
tried adding to PATH and CLASS_PATH, but still nothing. Not only that, I tried adding the pathe to where jre-1.4.2 actually is, but it ignores that too (/usr/local/lib/jvm or /usr/local/lib/jvm/jre-1.4.2) Neither work.
However, I do see gcj-1.4. Now my gcc version is gcc-4.1.1, and I I suppose the jre-1.4 files I have were unpacked with gcc?. (Yes I have loads of jre-1.4.1 files ... I have no idea where they came from really. Also, jre-1.4.2 is at its "end of life transition" according to Sun so 1.6 seems a better idea)
So I really have two questions.
Did my gcc unpack the gcj-1.4.2 files, If so, should I install the latest gcc which (might) unpack gcj-1.6? (Or is the gcj bit a complete red-herring?)
And why won't "Add" in office/java/options add anything, even if it is there?
Hope this helps.....look towards the bottom.... OpenOffice works fine after removing $HOME/.openoffice.org2/user/config/javasettings_Linux_x86.xml file
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
Mandriva 2007 ??
Suggest : Uninstall all gcj-4.xx, java-1.x.x-gcj and java-1.x.x-icedtea (if there)
(and if you can (dependency concern)) Then install genuine 'sun-java-1.5 (or 1.6)
from http://www.java.com/en/download/linux_manual.jsp
This 'sun-java' will work with all applications, 'gcj' will not.
To know your installed packages, run command 'rpm -qa | sort > package-list.txt'
making a textfile in /home with all 'rpm' stuff.
By the way : gcc makes no java, gcj etc. are seperate packages.
Regards and good luck!
Edit: Sorry double answer, thought I lost it by editing.
I thought that using the latest openoffice would be a good idea (with new features and so on).
However on Mandriva 2007.0 at least, there is now way it will pick up the jre.
The problem (seems to me at least) is either with openoffice 2.4 itself or the way that the
rpm installs it. I did read somewhere today that some people have just gone back to version 2.3, and I decided to do so.
The thing is, though I downloaded 2.3 from openoffice, I recalled that 2.3 came bundled with the Mandriva 2007.0, and I installed it that way after uninstalling 2.4. So, I can't tell anyone if 2.3 works if you have to download it directly from openoffice.
Nevertheless, for me, the 2.3 version picks up the latest jre from Sun no problem. Now to learn this stuff! (All I have donw so far is to find that it locates all the jre versions I have...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.