Initialization Error
Sparse Way
support at sparseway.com
Thu Feb 28 16:00:29 UTC 2019
--enable-libffi-bundling=yes
________________________________
From: Sparse Way
Sent: Thursday, February 28, 2019 5:52 PM
To: gary.adams at oracle.com; mobile-dev at openjdk.java.net
Subject: Re: Initialization Error
Turned out libffi.so.6 is missing and after checking the configuration log file, the library is not bundled:
checking if libffi works... yes
checking if libffi should be bundled... no
Configuration:
bash configure --enable-option-checking=fatal --build=x86_64-unknown-linux-gnu --host=arm-linux-androideabi --target=arm-linux-androideabi --disable-warnings-as-errors --enable-headless-only --with-jdk-variant=normal --with-jvm-variants=zero --with-libffi=$LIBFFI_DIR --with-cups-include=$CUPS_DIR --with-devkit=$ANDROID_DEVKIT --with-debug-level=fastdebug --with-freetype=$FREETYPE_DIR
Tried to replace --with-libffi with --with-libffi-include=$LIBFFI_DIR/include --with-libffi-lib=$LIBFFI_DIR/lib but still it's not bundled.
________________________________
From: gary.adams at oracle.com <gary.adams at oracle.com>
Sent: Thursday, February 28, 2019 12:53 PM
To: Sparse Way; mobile-dev at openjdk.java.net
Subject: Re: Initialization Error
Check the path to the libjvm in the dlopen call:
jdk/src/java.base/share/native/javalauncher_api/javalauncher_api.c
On 2/27/19 8:17 PM, Sparse Way wrote:
> Hi,
>
> Library ocldvk loaded without problems, however loadJavaVM in javalauncher_api.c is returning JL_CANTLOADLIBJVM after calling JavaLauncher.createJavaVM(jre, new String[]{}, null).
>
> D/JVM: JavaLauncher_jni::initialize: Cannot initialize javalauncher_api, errocode -1019.
> java.lang.IllegalArgumentException: Cannot initialize Java runtime
> at com.oracle.dalvik.javalauncher.JavaLauncher.initialize(JavaLauncher.java:280)
> at com.oracle.dalvik.javalauncher.JavaLauncher.createJavaVM(JavaLauncher.java:349)
More information about the mobile-dev
mailing list