<div dir="ltr"><div>(Forwarding to the development list.)</div><div><br></div>On 20 October 2014 16:39, Robert Antoni Buj i Gelonch <span dir="ltr"><<a href="mailto:robert.buj@gmail.com" target="_blank">robert.buj@gmail.com</a>></span> wrote:<br><div class="gmail_quote"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">
<p>Xcode doesn't include the java framework. </p><p><span>jvmfwk/plugins/sunmajor/pluginlib/otherjre.cxx</span><span>:</span><span> "/../../../../../Frameworks/</span><span><b>JavaVM</b></span><span>.framework/</span><span><b>JavaVM</b></span><span>" //as of 1.6.0_22</span></p></div></blockquote></span><div>You mean that that line used to end up referring to something that came with an Xcode installation, but was otherwise not present? I do have a /System/Library/Frameworks/JavaVM.framework. Probably that is what the above entry was supposed to point to, but as the location of the java binary changed at some point, that relative path does not work any longer? Maybe using a relative path here is pointless even? This code is over-complicated, patches to simplify it are more than welcome;)<span style="font-family:Menlo;font-size:11px"> </span></div><span class=""><div><br></div><div>> <span style="font-size:13px;font-family:arial,sans-serif">We also have the tool "/usr/libexec/java_home" and work with the output of "</span><span style="font-size:13px;font-family:arial,sans-serif">/usr/libexec/java_home -V" or something similar.</span></div><div><span style="font-size:13px;font-family:arial,sans-serif"><br></span></div></span><div><span style="font-size:13px;font-family:arial,sans-serif">Yep. It is used in <a href="http://configure.ac" target="_blank">configure.ac</a> to set up a JAVA_HOME environment variable for *build-time* use. Whether that is strictly necessary or not, I have no idea. (IMHO it might be cleaner if at build-time the same automated mechanism was used to find the JVM to use as at LibreOffice run-time.)</span></div><div><span style="font-size:13px;font-family:arial,sans-serif"><br></span></div><div><span style="font-size:13px;font-family:arial,sans-serif">--tml</span></div><div><br></div></div></div></div>
</div><br></div>