<div dir="ltr"><div><div><div><div><div><div>Hello,<br></div>I see someone is sharing the same pain I have ;-)<br><br></div>I'm having a bit different situation, and was thinking to solve either by meddling with setting rpath at build time, or with LD_LIBRARY_PATH at run time.<br>
</div>In my case, I have a build machine with jdk (openjdk) installed, but the target machines may have just jre installed, so I can't use symbolic links for specifying "--with-java" path when building collectd (which would be then written into rpath) - I have to use a hardcoded path that includes java major and minor versions.<br>
</div>And when java upgrades on target machines, kaboooooom<br></div>I yet have to invest time to think on how to solve this in proper way.<br><br><br></div><div>Well this post is not very useful got Daniel, except for getting more attention - perhaps someone has solved similar problem before.<br>
</div><div><div><br><div><br><br><div><br></div></div></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 6 March 2014 16:17, Daniel Hilst Selli <span dir="ltr"><<a href="mailto:danielhilst@gmail.com" target="_blank">danielhilst@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 class="">On 03/06/2014 09:34 AM, Daniel Hilst Selli wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi, I came across a problem while crosscompiling java plugin, I'm using<br>
arm architeture..<br>
<br>
Here is the thing, since I'm targeting an arm, I need an arm libjvm.so,<br>
found on EJRE, to compile java.so plugin. OK, no problem so far..<br>
<br>
The problem comes here, since Java plugins like GenericJMX has to be<br>
compiled too I need a JDK.. There is no JDK for embedded, not one that I<br>
know, so I need an target JRE (libjvm.so) and a host JDK (jar, javac, ...)<br>
<br>
AFAIK current building process has no way to setup target JRE and host<br>
JDK, so what I did -- is ugly -- I replace x86 libjvm.so on<br>
JDK_HOME/jre/lib/amd64/server/ for the one that comes on EJRE.<br>
<br>
Is an error prone procedure and is ugly, I'm not really an autotools<br>
hacker, but it should detect cross compiling, can we take advantage of<br>
this to setup target JRE?<br>
<br>
Cheers<br>
</blockquote>
<br></div>
Also would be nice if I can set rpath for java.so plugin since JAVA_HOME will change on target :-)<br>
<br>
I'll take a look on "how to do it" soon, just poping up the ideas,<br>
<br>
Cheers,<div class="HOEnZb"><div class="h5"><br>
<br>
______________________________<u></u>_________________<br>
collectd mailing list<br>
<a href="mailto:collectd@verplant.org" target="_blank">collectd@verplant.org</a><br>
<a href="http://mailman.verplant.org/listinfo/collectd" target="_blank">http://mailman.verplant.org/<u></u>listinfo/collectd</a><br>
</div></div></blockquote></div><br></div>