sierkb a écrit :Maybe helpful for a proper solution in OpenOffice:
Please read and pay attention to what Apple tells in its recent Release Notes to this recent Java Update:
Apple Developer: Java for Mac OS X 10.6 Update 3 and 10.5 Update 8 Release Notes
http://developer.apple.com/library/mac/ ... 80-CH1-SW1
Section "New and Noteworthy"
Subsection "Third Party JVM Support and Locations"
Subsubsection "Java SE 6 Locations"
http://developer.apple.com/library/mac/ ... lementID_4
<cite>
The location of the Java SE 6 runtime home has changed to /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home. JDK bundles
provided via the Developer package, developer previews, and 3rd party JVMs should be installed in /Library/Java/JavaVirtualMachines or ~/Library/Java/JavaVirtualMachines. Developer previews of Java can now be
installed and uninstalled without affecting the system JVM(s).
</cite>
and
Subsubsection "Java IDEs"
http://developer.apple.com/library/mac/ ... lementID_5
<cite>
In testing, some Java IDEs have shown problems navigating into the new JDK bundle structure, and persisting the location of the new JDK bundles. Some IDEs may have to change how they prompt users to locate a JVM on Mac OS X, and should ideally present a list of JVMs generated from /usr/libexec/java_home --xml, which outputs each discovered JVM, and orders them according to the user's order in Java Preferences.
</cite>
Also pay attention to the following comment to this issue (and such proposed workaround like simply symlinking the JVM location) by one core developer of NeoOffice, where this issue is also discussed but an non-issue, because
NeoOffice seems to detect the Java JVM another way (maybe the official-and-recommended-by-Apple way?) than OpenOffice:
http://trinity.neooffice.org/modules.ph ... 0996#60996
------- Additional comments from sierkb Sat Oct 23 23:47:27 +0000 2010 -------
See also:
Apple Developer: Technical Q&A QA1170: Important Java Directories on Mac OS X
http://developer.apple.com/library/mac/ ... a1170.html
<cite>
Q: I am porting a Java product to Mac OS X. What are the equivalents for directories and paths common to JDK installations on other platforms?
A: Since a JDK is preinstalled on every copy of Mac OS X, the location of the Java VM may vary, but can be found using tools built into the OS. User input should never be required to locate Java-related paths and directories.
Java Home
Many Java applications need to know the location of a $JAVA_HOME directory. The $JAVA_HOME on Mac OS X should be found using the /usr/libexec/java_home command line tool on Mac OS X 10.5 or later. On older Mac OS X versions where the tool does not exist, use the fixed path "/Library/Java/Home". The /usr/libexec/java_home tool dynamically finds the top Java version specified in Java Preferences for the current user. This path allows access to the bin subdirectory where command line tools such as java, javac, etc. exist as on other platforms. The tool /usr/libexec/java_home allows you to specify a particular CPU architecture and Java platform version when locating a $JAVA_HOME.
Another advantage of dynamically finding this path, as opposed to hardcoding the fixed endpoint, is that it is updated when a new version of Java is downloaded via Software Update or installed with a newer version of Mac OS X. For this reason, it is important that developers do not install files in the JDKs inside of /System, since the changes will be lost with subsequent updates by newer versions of Java.
To obtain the path to the currently executing $JAVA_HOME, use the java.home System property.
</cite>
Apple Manpage to java_home:
http://developer.apple.com/library/mac/ ... e/ManPages
man1/java_home.1.html
How does OpenOffice determine $JAVA_HOME so far? This official and recommended way ? When not this recommended (because most flexible and future-safe) way, why not? Maybe that is the way NeoOffice does it (and has no troubles)? Maybe a good starting point for a fix of the issue in OpenOffice ?