Apache OpenOffice (AOO) Bugzilla – Issue 59009
Clean up javaldx for Java mustang
Last modified: 2013-02-07 21:56:51 UTC
In SUN's Java mustang (aka Java 6) on Linux and Solaris, there will be no more need to set LD_LIBRARY_PATH (also see Hamburg-internal #104381#). Thus, the following simplification can be made: In javaldx, return an empty string for SUN Java >= mustang (need to check how related JVMs like Blackdown behave, too); in those places that call javaldx, take care not to extend LD_LIBRARY_PATH if the string returned by javaldx is empty.
.
However, it appears that the java executable still re-execs itself with LD_LIBRARY_PATH set, and if soffice is then spawned via java.lang.Runtime.exec it inherits the LD_LIBRARY_PATH, and if soffice does not put the "safe" javaldx-computed directories at the front of LD_LIBRARY_PATH, instantiating a JVM in the soffice.bin process will crash due to the "unsafe" directories put on the LD_LIBRARY_PATH by the java executable (see Sun-internal #b6670965#).