B4J Question WebView Error in autonomous package

Luis Felipe Andrade

Member
Licensed User
Hello, trying to deploy my application in b4j, I have used a full screen Webview on the development machine, when I run it it works perfectly, but once I create the autonomous package and put it on another computer it opens and closes immediately, Using run_debug.bat it shows me the error on the MS-DOS screen. please help, thanks in advance!

webview:
''The Webview is declared in Class_Globals

Private WebView1 As WebView

''then just use it:

Sub web_tick
    Try
        If pwebview="1" Then
        timer21.Interval=pwebrefresh*1000
        WebView1.LoadUrl(pweburl)
       End If
    Catch
        Log("9a" & LastException.Message)
        Pane_Web.Visible=False
    End Try
End Sub
C:\BizetDS>cd bin

C:\BizetDS\bin>java.exe @release_java_modules.txt -m b4j/b4j.example.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.example.b4xmainpage.innerInitialize(Unknown Source)
at b4j/b4j.example.b4xmainpage._initialize(Unknown Source)
at b4j/b4j.example.b4xpagesmanager._initialize(Unknown Source)
at b4j/b4j.example.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.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.NoClassDefFoundError: javafx/scene/web/WebView
at b4j/anywheresoftware.b4j.objects.WebViewWrapper.<clinit>(Unknown Source)
at b4j/b4j.example.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:\BizetDS\bin>pause
Presione una tecla para continuar . . .
 

teddybear

Well-Known Member
Licensed User
Try to add
B4X:
#PackagerProperty: IncludedModules = javafx.web
 
Upvote 0
Solution
Top