B4J Question B4JPackager11 error with webview

Omar Moreno

Member
Licensed User
Error with webview.
Place a webview with the designer, when I run with the IDE it works fine, but when I pack it with the B4JPackager11 and I run an error:

D:\0-Empresa\Herramientas\Programacion\B4X\B4J\Programas\B4JPackager11\B4JPackager11\Objects\temp\build\bin>java.exe @release_java_modules.txt -m b4j/MSPlanilla.com.main
main$ResumableSub_AppStart.resume (java line: -1)
java.lang.NoClassDefFoundError: javafx/scene/web/WebView
at b4j/anywheresoftware.b4j.objects.WebViewWrapper.<clinit>(Unknown Source)
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Unknown Source)
at b4j/anywheresoftware.b4a.DynamicBuilder.build(Unknown Source)
at b4j/anywheresoftware.b4j.objects.LayoutBuilder.loadLayoutHeader(Unknown Source)
at b4j/anywheresoftware.b4j.objects.LayoutBuilder.loadLayoutHeader(Unknown Source)
at b4j/anywheresoftware.b4j.objects.LayoutBuilder.loadLayout(Unknown Source)
at b4j/anywheresoftware.b4j.objects.PaneWrapper.LoadLayout(Unknown Source)
at b4j/MSPlanilla.com.main$ResumableSub_AppStart.resume(Unknown Source)
at b4j/anywheresoftware.b4a.keywords.Common$2$1.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)
Caused by: java.lang.ClassNotFoundException: javafx.scene.web.WebView
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(Unknown Source)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(Unknown Source)
at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
... 17 more

How can I fix that error?
Thank you.
 

Omar Moreno

Member
Licensed User
Ok, I saw the line:

B4X:
ExcludedModules = Array ("javafx.web") 'comment this line if using WebView.
Now it is working.
Thank you.
 
Top