Initialization Error

gary.adams at oracle.com gary.adams at oracle.com
Thu Feb 28 10:53:09 UTC 2019


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