B4J Question DButils not running under Linux

ThorstenStueker

Member
Licensed User
When starting DBUTILS I get the following errormessage. I have the problem with all APPS using XUI Lib or SQL Lib. I can not get this error out but I have to...:)

java --module-path /usr/share/openjfx/lib/ --add-modules=javafx.controls -jar DBUtils.jar
main._process_globals (java line: 419)
java.lang.NoClassDefFoundError: javafx/scene/web/WebView
at anywheresoftware.b4j.objects.WebViewWrapper.<clinit>(WebViewWrapper.java:43)
at b4j.example.main._process_globals(main.java:419)
at b4j.example.main.initializeProcessGlobals(main.java:385)
at b4j.example.main.start(main.java:34)
at javafx.graphics/com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$9(LauncherImpl.java:846)
at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runAndWait$12(PlatformImpl.java:455)
at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$10(PlatformImpl.java:428)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at javafx.graphics/com.sun.javafx.application.PlatformImpl.lambda$runLater$11(PlatformImpl.java:427)
at javafx.graphics/com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:96)
at javafx.graphics/com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method)
at javafx.graphics/com.sun.glass.ui.gtk.GtkApplication.lambda$runLoop$11(GtkApplication.java:277)
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.lang.ClassNotFoundException: javafx.scene.web.WebView
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
... 13 more

I have installed Java Version

openjdk version "11.0.8" 2020-07-14
OpenJDK Runtime Environment (build 11.0.8+10-post-Ubuntu-0ubuntu120.04)
OpenJDK 64-Bit Server VM (build 11.0.8+10-post-Ubuntu-0ubuntu120.04, mixed mode, sharing)

and openjfx Version

javafx.version=11.0.6-internal
javafx.runtime.version=11.0.6-internal+0-2020-04-14-123056
javafx.runtime.build=0

What can I do to get it running or is it a Bug?
 

ThorstenStueker

Member
Licensed User
Foound the solution. When starting you have to load all FX modules.

java --module-path /usr/share/openjfx/lib/ --add-modules=ALL-MODULE-PATH -jar DBUtils.jar

Otherwise he will not start all modules cause when typing in module for module he finds them sometimes and sometimes not. So to do All-Module-Path is the best choice.
 
Upvote 0
Top