B4J Question app falls on WebView

a n g l o

Active Member
Licensed User
Longtime User
hi
i'm using b4j ver 8.9, jdk 11.0.1 .

- starting a new b4j ui project - >Build Standalone Package (Release mode) - > exe works OK

- openning the internal designer and adding a WebView. Generating a Dim declaration (only change from basic code). -->
running from ide in release mode - works OK.
-->Build Standalone Package (Release mode) --> exe DOES NOT WORK !

running the run_debug.bat :
B4X:
C:\tmp\1\Objects\temp\build>cd bin

C:\tmp\1\Objects\temp\build\bin>java.exe @release_java_modules.txt  -m b4j/b4j.example.main
main._process_globals (java line: -1)
java.lang.NoClassDefFoundError: javafx/scene/web/WebView
        at b4j/anywheresoftware.b4j.objects.WebViewWrapper.<clinit>(Unknown Source)
        at b4j/b4j.example.main._process_globals(Unknown Source)
        at b4j/b4j.example.main.initializeProcessGlobals(Unknown Source)
        at b4j/b4j.example.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.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)
        ... 13 more


C:\tmp\1\Objects\temp\build\bin>pause
Press any key to continue . .

not that i'm doing nothing of my own here, just added a view to the default project.
thanks.
 

DonManfred

Expert
Licensed User
Longtime User
Build Standalone Package (Release mode) --> exe DOES NOT WORK !
this is expected when using webview. Check the tutorial again. The solution is mentioned there.


 
Upvote 0
Top