B4J Question Small program with webview run ok, but as an exe crashes

omarruben

Active Member
Licensed User
Longtime User
Runing inside the B4j IDE run perfect, but after creating the exe version (Build Standalone Package) it crashes with the next message:

B4X:
C:\b4j xpages amples\sample1\B4J\Objects\temp\build>cd bin

C:\b4j xpages amples\sample1\B4J\Objects\temp\build\bin>java.exe @release_java_modules.txt  -m b4j/b4j.example99.main
b4xmainpage.innerInitialize (java line: -1)
java.lang.RuntimeException: java.lang.NoClassDefFoundError: javafx/scene/web/WebView
        at b4j/anywheresoftware.b4a.BA.raiseEvent2(Unknown Source)
        at b4j/b4j.example99.b4xmainpage.innerInitialize(Unknown Source)
        at b4j/b4j.example99.b4xmainpage._initialize(Unknown Source)
        at b4j/b4j.example99.b4xpagesmanager._initialize(Unknown Source)
        at b4j/b4j.example99.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/b4j.example99.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)
Caused by: java.lang.NoClassDefFoundError: javafx/scene/web/WebView
        at b4j/anywheresoftware.b4j.objects.WebViewWrapper.<clinit>(Unknown Source)
        at b4j/b4j.example99.b4xmainpage._class_globals(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.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)
        ... 27 more


C:\b4j xpages amples\sample1\B4J\Objects\temp\build\bin>pause
Press any key to continue . . .
 
Top