<div dir="auto"><div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Jan 23, 2021, 11:32 PM Petri Hintukainen <<a href="mailto:phintuka@users.sourceforge.net">phintuka@users.sourceforge.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">la, 2021-01-23 kello 17:43 -0300, Vitor Dall'Acqua kirjoitti:<br>
> Well, I'm no expert but when I tried to add it along with other<br>
> libraries it ended up in the same folder along with all other libs.<br>
<br>
Then, it should find libjvm.so from there without any path ? If<br>
JAVA_HOME is unset, first probed library is "libjvm.so" without any<br>
path added to it.<br>
<br>
If not, you could try adding following snippet to bdj.c:_load_jvm(),<br>
before "java_home = getenv("JAVA_HOME")" line:<br>
<br>
handle = dl_dlopen("/lib/arm64/libjvm.so", NULL);<br>
if (handle) {<br>
return handle;<br>
}<br>
<br>
But JVM probably won't find other files it needs if those are inside<br>
the apk.<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">I was arguing that the whole jvm needs to be in the apk, see the phoneme apk I linked to. It includes cvm in /assets/</div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
</blockquote></div></div></div>