JRE not found on Mac

Hi,

I'm a new user on Mac OSX and have a problem on Writer. I appreciate
if anyone has an idea about this.

Problem phenomenon:
1. when I try to "Save as" a document (no matter what the format/file
name I use), it says "libreoffice requires a Java Runtime Envirionment
(JRE) to perform this task. Please install a JRE and restart
LibreOffice."
2. On "Preference" -> "LibreOffice" -> "Java" panel, there's no JRE
shown although I have some JREs installed(*1). And on the same panel,
I tried to add the path of JRE/Java but all the paths I've tried were
rejected saying "The folder you selected does not contain a Java
runtime environment. Please select a different folder"(*2).

Environments:
- LibreOffice 3.3.0
- Mac OSX 10.6.4

*1 Proof of having Java installed
MyMac:bin user$ java -version
java version "1.6.0_22"
Java(TM) SE Runtime Environment (build 1.6.0_22-b04-307-10M3261)
Java HotSpot(TM) 64-Bit Server VM (build 17.1-b03-307, mixed mode)

*2 Paths tried (partially)
/System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/java
/System/Library/Frameworks/JavaVM.framework/Home
/System/Library/Frameworks/JavaVM.framework/JavaVM

Thanks,
Isaac

Hi,

I'm a new user on Mac OSX and have a problem on Writer. I appreciate
if anyone has an idea about this.

Problem phenomenon:
1. when I try to "Save as" a document (no matter what the format/file
name I use), it says "libreoffice requires a Java Runtime Envirionment
(JRE) to perform this task. Please install a JRE and restart
LibreOffice."
2. On "Preference" -> "LibreOffice" -> "Java" panel, there's no JRE
shown although I have some JREs installed(*1). And on the same panel,
I tried to add the path of JRE/Java but all the paths I've tried were
rejected saying "The folder you selected does not contain a Java
runtime environment. Please select a different folder"(*2).

Environments:
- LibreOffice 3.3.0
- Mac OSX 10.6.4

*1 Proof of having Java installed
MyMac:bin user$ java -version
java version "1.6.0_22"
Java(TM) SE Runtime Environment (build 1.6.0_22-b04-307-10M3261)
Java HotSpot(TM) 64-Bit Server VM (build 17.1-b03-307, mixed mode)

*2 Paths tried (partially)

What do you mean by partially?

/System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/java
/System/Library/Frameworks/JavaVM.framework/Home
/System/Library/Frameworks/JavaVM.framework/JavaVM

Try:

/System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands

The path you originally applied does not end in a folder. It ends with the executable.

I may be way off target.

//James

James,

*2 Paths tried (partially)

What do you mean by partially?

Sorry for ambiguity. I just wanted to mean that I didn't list all
paths I tried (since I didn't take record of those paths).

Try:

/System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands

This path returned the same result I described.

Isaac

I know! I tried it myself when I discovered that my installation didn't have a java instance registered. :frowning:

The thing that surprises me is that you have a java problem with "Save". I don't get that, and I can use "Save" and "Save as".

I've just opened my old OOo instance, which has been working successfully for a year, also on a Mac, and there is no jave instance registered there, either.

So now I guess we both have to wait for help from elsewhere.

//James

The latest Java update on Macs breaks Java usage in OOo and LibreOffice. The problem is fixed in OOo 3.3 RC3.
There is a fix for previous versions. See the last couple of posts in this discussion:
http://user.services.openoffice.org/en/forum/viewtopic.php?f=17&t=34853

Or in the OOo bug report:
http://www.openoffice.org/issues/show_bug.cgi?id=115180

Great, Larry, thanks. That did the job.

//James

Larry,

apologies for belated response and thank you for the reference to the
know issue discussions. The link showed how to work around for the
original problem I asked (Java didn't show up in preference window).

# Now I got another problem which is Write crashes for every input
I've tried, but I think I better open another discussion.

Isaac

Hi Isaac,

Larry,

apologies for belated response and thank you for the reference to the
know issue discussions. The link showed how to work around for the
original problem I asked (Java didn't show up in preference window).

# Now I got another problem which is Write crashes for every input
I've tried, but I think I better open another discussion.

The suggested workaround by relinking symbolically is not the solution,
and only causes more problems, similar to the one you describe above,
i.e. more frequent crashes.

You need to either download and install the LibreOffice 3.3 beta release
version (or release candidate or whatever it is called) which is
equivalent to OOo 3.3 rc4 or find and download the patched files that
you then copy into your LibO installation path at the appropriate place.
If you read the bug issue on the OOo site fully, you will find
instructions for downloading and installing these patched files. (two
dynamic library files in a single zip).

Alex

WHOA!

Did I miss the announcement, or was there one?

Thanks.

Mark

Hi Mark,

WHOA!

Did I miss the announcement, or was there one?

Thanks.

No, sorry, you didn't miss anything, I should've added "when it comes
out". I'm still using Beta2, but I plugged in the patch files into my
LibO Beta2 and it solves the problem. I haven't downloaded the OOo
latest RC (now RC4 but RC5 is apparently up and coming soon).

Alex

P.S. The files in question can be found here :

ftp://qa-upload.services.openoffice.org/jl162/

with an explanation of the problem, and its solution, here :

http://wiki.services.openoffice.org/wiki/Documentation/FAQ/Platform/Mac_OS_X_10.6

Alex

Instructions to install files without having to use Terminal and the commandline can be found here:
http://www.raphaelbircher.ch/computer_tagebuch.php

Did that twice, to make sure I did it correctly.

Still no java showing up.

Hi Rodney,

Did that twice, to make sure I did it correctly.

Still no java showing up.

I hope you didn't do the symbolic linking thing that was suggested prior
to the patched files being made available.

Additionally, the beta 3 version of LibO integrates the upstream fix
provided by OOo so it should just work again with the beta 3.

BTW, you don't say which Mac platform you're on ?

Alex

The intel platform. I did the sym-link before, but it caused WAY MORE
issues than it fixed, so it was removed.

Any hints about the release of beta 3?

Hi Rodney,

The intel platform. I did the sym-link before, but it caused WAY MORE
issues than it fixed, so it was removed.

Any hints about the release of beta 3?

Well, I am using the beta 3 at the moment, and it picked up the version
of Java no problem.

Alex

Weird. Intel os x 10.6.5, LO 3.3.0, 000330m1 (Build:1),
libreoffice-build 3.2.99.2

Java does not appear

Got it working.

Downloaded the java update, and re-ran it manually. Java is now found