<div dir="ltr"><p style="font-family:arial,sans-serif;font-size:13px">FIX: Oracle doesn’t bundle JAVA_HOME/../../../../../Frameworks/JavaVM.framework/JavaVM, it comes with JAVA_HOME/jre/lib/server/libjvm.dylib.<br></p><p style><font face="arial, sans-serif">(note that Apple installs under /System/Library, Oracle installs under /Library)</font></p><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 21, 2014 at 10:21 AM, 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><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">







<p><span>Oracle doesn’t bundle /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/../../../../../Frameworks/JavaVM.framework/JavaVM, it comes with /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/../lib/server/libjvm.dylib.</span></p><p><span>I've upload the patch <a href="https://gerrit.libreoffice.org/#/c/12057/" target="_blank">https://gerrit.libreoffice.org/#/c/12057/</a>.</span></p><p><span><br></span></p><p><span>Regards,</span></p><p><span>Robert</span></p></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Mon, Oct 20, 2014 at 4:12 PM, Tor Lillqvist <span dir="ltr"><<a href="mailto:tml@iki.fi" target="_blank">tml@iki.fi</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr"><div>(Forwarding to the development list.)</div><div><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><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><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></div></div>
<br></div></div><span class="">_______________________________________________<br>
LibreOffice mailing list<br>
<a href="mailto:LibreOffice@lists.freedesktop.org" target="_blank">LibreOffice@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/libreoffice" target="_blank">http://lists.freedesktop.org/mailman/listinfo/libreoffice</a><br>
<br></span></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><div><a href="http://about.me/rbuj" target="_blank">http://about.me/rbuj</a><br></div></div>
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><div><a href="http://about.me/rbuj" target="_blank">http://about.me/rbuj</a><br></div></div>
</div>