B4J Question Open JDK11 Packager

Philip Prins

Active Member
Licensed User
Hello ,

When i run my application it works fine but when making a package i get multiple errors:

B4X:
(InaccessibleObjectException) java.lang.reflect.InaccessibleObjectException: Unable to make field private static java.lang.String[] java.lang.ClassLoader.sys_paths accessible: module java.base does not "opens java.lang" to module b4j
(InaccessibleObjectException) java.lang.reflect.InaccessibleObjectException: Unable to make field private static java.lang.String[] java.lang.ClassLoader.sys_paths accessible: module java.base does not "opens java.lang" to module b4jjava.lang.reflect.InaccessibleObjectException: Unable to make field private static java.lang.String[] java.lang.ClassLoader.sys_paths accessible: module java.base does not "opens java.lang" to module b4j
    at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(Unknown Source)
    at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(Unknown Source)
    at java.base/java.lang.reflect.Field.checkCanSetAccessible(Unknown Source)
    at java.base/java.lang.reflect.Field.setAccessible(Unknown Source)
    at b4j/net.labymod.opus.OpusCodec.loadNativesFromJar(Unknown Source)
    at b4j/com.tillekesoft.b4jopus.B4jOpusWrapper.Initialize(Unknown Source)
    at b4j/ROIP.channel2.roip._initialize(Unknown Source)
    at b4j/ROIP.channel2.main$ResumableSub_AppStart.resume(Unknown Source)
    at b4j/ROIP.channel2.main._appstart(Unknown Source)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.base/java.lang.reflect.Method.invoke(Unknown Source)
    at b4j/anywheresoftware.b4a.BA.raiseEvent2(Unknown Source)
    at b4j/anywheresoftware.b4a.BA.raiseEvent(Unknown Source)
    at b4j/ROIP.channel2.main.start(Unknown Source)
    at javafx.graphics/com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$9(Unknown Source)
    at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runAndWait$12(Unknown Source)
    at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$10(Unknown Source)
    at java.base/java.security.AccessController.doPrivileged(Native Method)
    at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$11(Unknown Source)
    at javafx.graphics/com.sun.glass.ui.InvokeLaterDispatcher$Future.run(Unknown Source)
    at javafx.graphics/com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
    at javafx.graphics/com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(Unknown Source)
    at java.base/java.lang.Thread.run(Unknown Source)

(NoSuchElementException) java.util.NoSuchElementExceptionjava.util.NoSuchElementException
    at java.base/java.util.LinkedHashMap$LinkedHashIterator.nextNode(Unknown Source)
    at java.base/java.util.LinkedHashMap$LinkedEntryIterator.next(Unknown Source)
    at java.base/java.util.LinkedHashMap$LinkedEntryIterator.next(Unknown Source)
    at b4j/anywheresoftware.b4a.objects.collections.Map$MyMap.getEntry(Unknown Source)
    at b4j/anywheresoftware.b4a.objects.collections.Map$MyMap.getKey(Unknown Source)
    at b4j/anywheresoftware.b4a.objects.collections.Map.GetKeyAt(Unknown Source)
    at b4j/ROIP.channel2.mqtt._chinforeceived(Unknown Source)
    at b4j/ROIP.channel2.mqtt._client_messagearrived(Unknown Source)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.base/java.lang.reflect.Method.invoke(Unknown Source)
    at b4j/anywheresoftware.b4a.BA.raiseEvent2(Unknown Source)
    at b4j/anywheresoftware.b4a.BA$3.run(Unknown Source)
    at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$10(Unknown Source)
    at java.base/java.security.AccessController.doPrivileged(Native Method)
    at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$11(Unknown Source)
    at javafx.graphics/com.sun.glass.ui.InvokeLaterDispatcher$Future.run(Unknown Source)
    at javafx.graphics/com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
    at javafx.graphics/com.sun.glass.ui.win.WinApplication.lambda$runLoop$3(Unknown Source)
    at java.base/java.lang.Thread.run(Unknown Source)
 
Top