B4J Question Packager for B4J application distribution on Linux

Mahimahi

Member
Licensed User
Is there a packager one can use to package up a B4J application, including JavaFX, to be distributed to Linux platform? e.g. ubuntu latest.

I've tried running java -jar myapp.jar and it came back with message:

Error: JavaFX runtime components are missing, and are required to run this application

Did a few searches and installed openjfx but still does not work. If there is a packager allow me to package all up including JRE and JavaFX, so the end user can just run it without installing prerequisites or dependencies, it would be most ideal.

Please advise. Thanks a lot.
 

Mahimahi

Member
Licensed User
Thanks. I tried it just now and had the following issue:

sa@ubuntu:~/temp/linuxJdk/B4JPackager11/temp/build$ ./run.command
main._appstart (java line: -1)
java.lang.RuntimeException: java.lang.ExceptionInInitializerError
at b4j/anywheresoftware.b4a.BA.raiseEvent2(Unknown Source)
at b4j/anywheresoftware.b4j.objects.CustomViewWrapper.AfterDesignerScript(Unknown Source)
at b4j/anywheresoftware.b4j.objects.LayoutBuilder.loadLayout(Unknown Source)
at b4j/anywheresoftware.b4j.objects.PaneWrapper.LoadLayout(Unknown Source)
at b4j/tbcs.doc.updater.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/tbcs.doc.updater.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.gtk.GtkApplication._runLoop(Native Method)
at javafx.graphics/com.sun.glass.ui.gtk.GtkApplication.lambda$runLoop$11(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ExceptionInInitializerError
at b4j/org.fxmisc.richtext.ParagraphBox.<init>(Unknown Source)
at b4j/org.fxmisc.richtext.GenericStyledArea.createCell(Unknown Source)
at b4j/org.fxmisc.richtext.GenericStyledArea.lambda$new$9(Unknown Source)
at b4j/org.fxmisc.flowless.CellPool.getCell(Unknown Source)
at b4j/org.fxmisc.flowless.CellListManager.cellForItem(Unknown Source)
at b4j/org.reactfx.collection.MappedList.get(Unknown Source)
at b4j/org.reactfx.collection.MemoizationListImpl.get(Unknown Source)
at b4j/org.fxmisc.flowless.CellListManager.getCell(Unknown Source)
at b4j/org.fxmisc.flowless.CellPositioner.getSizedCell(Unknown Source)
at b4j/org.fxmisc.flowless.CellPositioner.placeStartAt(Unknown Source)
at b4j/org.fxmisc.flowless.Navigator.placeStartAtMayCrop(Unknown Source)
at b4j/org.fxmisc.flowless.Navigator.visit(Unknown Source)
at b4j/org.fxmisc.flowless.StartOffStart.accept(Unknown Source)
at b4j/org.fxmisc.flowless.Navigator.layoutChildren(Unknown Source)
at javafx.graphics/javafx.scene.Parent.layout(Unknown Source)
at b4j/org.fxmisc.flowless.VirtualFlow.layoutChildren(Unknown Source)
at javafx.graphics/javafx.scene.Parent.layout(Unknown Source)
at b4j/org.fxmisc.flowless.VirtualFlow.visibleCells(Unknown Source)
at b4j/org.fxmisc.richtext.GenericStyledArea.<init>(Unknown Source)
at b4j/org.fxmisc.richtext.StyledTextArea.<init>(Unknown Source)
at b4j/org.fxmisc.richtext.StyledTextArea.<init>(Unknown Source)
at b4j/org.fxmisc.richtext.StyleClassedTextArea.<init>(Unknown Source)
at b4j/org.fxmisc.richtext.StyleClassedTextArea.<init>(Unknown Source)
at b4j/org.fxmisc.richtext.CodeArea.<init>(Unknown Source)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.base/java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.base/java.lang.Class.newInstance(Unknown Source)
at b4j/anywheresoftware.b4j.object.JavaObject.InitializeNewInstance(Unknown Source)
at b4j/tbcs.doc.updater.codearea._designercreateview(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)
... 21 more
Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make com.sun.javafx.scene.text.TextLayout javafx.scene.text.TextFlow.getTextLayout() accessible: module javafx.graphics does not "opens javafx.scene.text" 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.Method.checkCanSetAccessible(Unknown Source)
at java.base/java.lang.reflect.Method.setAccessible(Unknown Source)
at b4j/org.fxmisc.richtext.TextFlowExt.<clinit>(Unknown Source)
... 56 more


Please advise if there's anything I can change to improve the result. Thanks.
 
Upvote 0

Mahimahi

Member
Licensed User
Thanks Erel. Now I get the following:

sa@ubuntu:~/temp/linuxJdk/B4JPackager11/temp/build$ ./run.command
main._appstart (java line: -1)
java.lang.RuntimeException: java.lang.ExceptionInInitializerError
at b4j/anywheresoftware.b4a.BA.raiseEvent2(Unknown Source)
at b4j/anywheresoftware.b4j.objects.CustomViewWrapper.AfterDesignerScript(Unknown Source)
at b4j/anywheresoftware.b4j.objects.LayoutBuilder.loadLayout(Unknown Source)
at b4j/anywheresoftware.b4j.objects.PaneWrapper.LoadLayout(Unknown Source)
at b4j/tbcs.doc.updater.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/tbcs.doc.updater.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.gtk.GtkApplication._runLoop(Native Method)
at javafx.graphics/com.sun.glass.ui.gtk.GtkApplication.lambda$runLoop$11(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ExceptionInInitializerError
at b4j/org.fxmisc.richtext.ParagraphBox.<init>(Unknown Source)
at b4j/org.fxmisc.richtext.GenericStyledArea.createCell(Unknown Source)
at b4j/org.fxmisc.richtext.GenericStyledArea.lambda$new$9(Unknown Source)
at b4j/org.fxmisc.flowless.CellPool.getCell(Unknown Source)
at b4j/org.fxmisc.flowless.CellListManager.cellForItem(Unknown Source)
at b4j/org.reactfx.collection.MappedList.get(Unknown Source)
at b4j/org.reactfx.collection.MemoizationListImpl.get(Unknown Source)
at b4j/org.fxmisc.flowless.CellListManager.getCell(Unknown Source)
at b4j/org.fxmisc.flowless.CellPositioner.getSizedCell(Unknown Source)
at b4j/org.fxmisc.flowless.CellPositioner.placeStartAt(Unknown Source)
at b4j/org.fxmisc.flowless.Navigator.placeStartAtMayCrop(Unknown Source)
at b4j/org.fxmisc.flowless.Navigator.visit(Unknown Source)
at b4j/org.fxmisc.flowless.StartOffStart.accept(Unknown Source)
at b4j/org.fxmisc.flowless.Navigator.layoutChildren(Unknown Source)
at javafx.graphics/javafx.scene.Parent.layout(Unknown Source)
at b4j/org.fxmisc.flowless.VirtualFlow.layoutChildren(Unknown Source)
at javafx.graphics/javafx.scene.Parent.layout(Unknown Source)
at b4j/org.fxmisc.flowless.VirtualFlow.visibleCells(Unknown Source)
at b4j/org.fxmisc.richtext.GenericStyledArea.<init>(Unknown Source)
at b4j/org.fxmisc.richtext.StyledTextArea.<init>(Unknown Source)
at b4j/org.fxmisc.richtext.StyledTextArea.<init>(Unknown Source)
at b4j/org.fxmisc.richtext.StyleClassedTextArea.<init>(Unknown Source)
at b4j/org.fxmisc.richtext.StyleClassedTextArea.<init>(Unknown Source)
at b4j/org.fxmisc.richtext.CodeArea.<init>(Unknown Source)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.base/java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.base/java.lang.Class.newInstance(Unknown Source)
at b4j/anywheresoftware.b4j.object.JavaObject.InitializeNewInstance(Unknown Source)
at b4j/tbcs.doc.updater.codearea._designercreateview(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)
... 21 more
Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make com.sun.javafx.scene.text.TextLayout javafx.scene.text.TextFlow.getTextLayout() accessible: module javafx.graphics does not "opens javafx.scene.text" 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.Method.checkCanSetAccessible(Unknown Source)
at java.base/java.lang.reflect.Method.setAccessible(Unknown Source)
at b4j/org.fxmisc.richtext.TextFlowExt.<clinit>(Unknown Source)
... 56 more
 
Upvote 0

Mahimahi

Member
Licensed User
Not sure if I added the line correctly. Please see attached. Thanks a lot.
 

Attachments

  • release_java_modules.txt
    899 bytes · Views: 98
Upvote 0

Mahimahi

Member
Licensed User
Thanks Erel. Attached please find my updated release_java_modules.txt file. Now I am getting:

sa@ubuntu:~/temp/linuxJdk/B4JPackager11/temp/build$ ./run.command
main._appstart (java line: -1)
java.lang.RuntimeException: java.lang.ExceptionInInitializerError
at b4j/anywheresoftware.b4a.BA.raiseEvent2(Unknown Source)
at b4j/anywheresoftware.b4j.objects.CustomViewWrapper.AfterDesignerScript(Unknown Source)
at b4j/anywheresoftware.b4j.objects.LayoutBuilder.loadLayout(Unknown Source)
at b4j/anywheresoftware.b4j.objects.PaneWrapper.LoadLayout(Unknown Source)
at b4j/tbcs.doc.updater.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/tbcs.doc.updater.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.gtk.GtkApplication._runLoop(Native Method)
at javafx.graphics/com.sun.glass.ui.gtk.GtkApplication.lambda$runLoop$11(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ExceptionInInitializerError
at b4j/org.fxmisc.richtext.ParagraphBox.<init>(Unknown Source)
at b4j/org.fxmisc.richtext.GenericStyledArea.createCell(Unknown Source)
at b4j/org.fxmisc.richtext.GenericStyledArea.lambda$new$9(Unknown Source)
at b4j/org.fxmisc.flowless.CellPool.getCell(Unknown Source)
at b4j/org.fxmisc.flowless.CellListManager.cellForItem(Unknown Source)
at b4j/org.reactfx.collection.MappedList.get(Unknown Source)
at b4j/org.reactfx.collection.MemoizationListImpl.get(Unknown Source)
at b4j/org.fxmisc.flowless.CellListManager.getCell(Unknown Source)
at b4j/org.fxmisc.flowless.CellPositioner.getSizedCell(Unknown Source)
at b4j/org.fxmisc.flowless.CellPositioner.placeStartAt(Unknown Source)
at b4j/org.fxmisc.flowless.Navigator.placeStartAtMayCrop(Unknown Source)
at b4j/org.fxmisc.flowless.Navigator.visit(Unknown Source)
at b4j/org.fxmisc.flowless.StartOffStart.accept(Unknown Source)
at b4j/org.fxmisc.flowless.Navigator.layoutChildren(Unknown Source)
at javafx.graphics/javafx.scene.Parent.layout(Unknown Source)
at b4j/org.fxmisc.flowless.VirtualFlow.layoutChildren(Unknown Source)
at javafx.graphics/javafx.scene.Parent.layout(Unknown Source)
at b4j/org.fxmisc.flowless.VirtualFlow.visibleCells(Unknown Source)
at b4j/org.fxmisc.richtext.GenericStyledArea.<init>(Unknown Source)
at b4j/org.fxmisc.richtext.StyledTextArea.<init>(Unknown Source)
at b4j/org.fxmisc.richtext.StyledTextArea.<init>(Unknown Source)
at b4j/org.fxmisc.richtext.StyleClassedTextArea.<init>(Unknown Source)
at b4j/org.fxmisc.richtext.StyleClassedTextArea.<init>(Unknown Source)
at b4j/org.fxmisc.richtext.CodeArea.<init>(Unknown Source)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.base/java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.base/java.lang.Class.newInstance(Unknown Source)
at b4j/anywheresoftware.b4j.object.JavaObject.InitializeNewInstance(Unknown Source)
at b4j/tbcs.doc.updater.codearea._designercreateview(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)
... 21 more
Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make com.sun.javafx.scene.text.TextLayout javafx.scene.text.TextFlow.getTextLayout() accessible: module javafx.graphics does not "opens javafx.scene.text" 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.Method.checkCanSetAccessible(Unknown Source)
at java.base/java.lang.reflect.Method.setAccessible(Unknown Source)
at b4j/org.fxmisc.richtext.TextFlowExt.<clinit>(Unknown Source)
... 56 more
 

Attachments

  • release_java_modules.txt
    893 bytes · Views: 86
Upvote 0

Mahimahi

Member
Licensed User
Thanks Erel. The app is for a client. Is it possible to send the build.zip link via private email instead? Please advise. Thanks a lot.
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
start a conversation with Erel and post the link there. Should be ok for him i guess.
 
Upvote 0

Mahimahi

Member
Licensed User
Thanks DonManfred. I've sent Erel the build.zip link via a private conversation per your suggestion. Hopefully he has time to take a look at it soon.
 
Upvote 0

Mahimahi

Member
Licensed User
I am sorry Erel, I am still having problem running the app with run.command. Here is what I see. Attached is the updated release_java_modules.txt


sa@ubuntu:~/temp/linuxJdk/B4JPackager11/temp/build$ ./run.command
main._appstart (java line: -1)
java.lang.RuntimeException: java.lang.ExceptionInInitializerError
at b4j/anywheresoftware.b4a.BA.raiseEvent2(Unknown Source)
at b4j/anywheresoftware.b4j.objects.CustomViewWrapper.AfterDesignerScript(Unknown Source)
at b4j/anywheresoftware.b4j.objects.LayoutBuilder.loadLayout(Unknown Source)
at b4j/anywheresoftware.b4j.objects.PaneWrapper.LoadLayout(Unknown Source)
at b4j/tbcs.doc.updater.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/tbcs.doc.updater.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.gtk.GtkApplication._runLoop(Native Method)
at javafx.graphics/com.sun.glass.ui.gtk.GtkApplication.lambda$runLoop$11(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ExceptionInInitializerError
at b4j/org.fxmisc.richtext.ParagraphBox.<init>(Unknown Source)
at b4j/org.fxmisc.richtext.GenericStyledArea.createCell(Unknown Source)
at b4j/org.fxmisc.richtext.GenericStyledArea.lambda$new$9(Unknown Source)
at b4j/org.fxmisc.flowless.CellPool.getCell(Unknown Source)
at b4j/org.fxmisc.flowless.CellListManager.cellForItem(Unknown Source)
at b4j/org.reactfx.collection.MappedList.get(Unknown Source)
at b4j/org.reactfx.collection.MemoizationListImpl.get(Unknown Source)
at b4j/org.fxmisc.flowless.CellListManager.getCell(Unknown Source)
at b4j/org.fxmisc.flowless.CellPositioner.getSizedCell(Unknown Source)
at b4j/org.fxmisc.flowless.CellPositioner.placeStartAt(Unknown Source)
at b4j/org.fxmisc.flowless.Navigator.placeStartAtMayCrop(Unknown Source)
at b4j/org.fxmisc.flowless.Navigator.visit(Unknown Source)
at b4j/org.fxmisc.flowless.StartOffStart.accept(Unknown Source)
at b4j/org.fxmisc.flowless.Navigator.layoutChildren(Unknown Source)
at javafx.graphics/javafx.scene.Parent.layout(Unknown Source)
at b4j/org.fxmisc.flowless.VirtualFlow.layoutChildren(Unknown Source)
at javafx.graphics/javafx.scene.Parent.layout(Unknown Source)
at b4j/org.fxmisc.flowless.VirtualFlow.visibleCells(Unknown Source)
at b4j/org.fxmisc.richtext.GenericStyledArea.<init>(Unknown Source)
at b4j/org.fxmisc.richtext.StyledTextArea.<init>(Unknown Source)
at b4j/org.fxmisc.richtext.StyledTextArea.<init>(Unknown Source)
at b4j/org.fxmisc.richtext.StyleClassedTextArea.<init>(Unknown Source)
at b4j/org.fxmisc.richtext.StyleClassedTextArea.<init>(Unknown Source)
at b4j/org.fxmisc.richtext.CodeArea.<init>(Unknown Source)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.base/java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.base/java.lang.Class.newInstance(Unknown Source)
at b4j/anywheresoftware.b4j.object.JavaObject.InitializeNewInstance(Unknown Source)
at b4j/tbcs.doc.updater.codearea._designercreateview(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)
... 21 more
Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make com.sun.javafx.scene.text.TextLayout javafx.scene.text.TextFlow.getTextLayout() accessible: module javafx.graphics does not "opens javafx.scene.text" 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.Method.checkCanSetAccessible(Unknown Source)
at java.base/java.lang.reflect.Method.setAccessible(Unknown Source)
at b4j/org.fxmisc.richtext.TextFlowExt.<clinit>(Unknown Source)
... 56 more
 

Attachments

  • release_java_modules.txt
    945 bytes · Views: 84
Upvote 0
Top