[libbluray-devel] Found a JRE compiled for Android (ARM)

Petri Hintukainen phintuka at users.sourceforge.net
Fri Jan 22 20:26:33 UTC 2021


pe, 2021-01-22 kello 14:46 -0300, Vitor Dall'Acqua kirjoitti:
> Well, I was looking at Petri's latest commit and now libbluray will
> search for JVM inside it's own folder. 
> This might be the answer for JRE on Android.

It should also help with libbluray .jar files, those can now be next to
libbluray.so (or the module where libbluray is linked in).

I don't know if it helps with JRE, libjvm.so would need to be in the
same directory with libbluray.so. This is of course possible only if
JVM is relatively simple (like PhoneME was). I don't know if symbolic
link would work (?).
Maybe this could be extended to support full JRE tree too. "Normal"
linux JVM paths are more or less useless with Android anyway.


Another possible solution could be adding libjvm.so location to dynamic
linker search path (like in old OpenJDK android examples). They seem to
add /data/app/jre/lib/arm/jli and /data/app/jre/lib too ; these are not
required with Linux, but seem to be an issue with MacOS (see
bdj.c:_load_jli_macos()).


Also JAVA_HOME should work now with "lib/arm/client". If it is
difficult to set, it would be quite simple to add player setting for
this (something like bd_set_player_setting_str(bd, BD_JAVA_HOME,
"/some/path")). Still, being able to figure it out automatically would
be the easiest way :)





More information about the libbluray-devel mailing list