Open kryjak opened 3 months ago
Facing smiliar issue when executing a JAR file. It works when we run application using maven clean install spring-boot:run
. Once we create the jar and then try to execute it using java -jar abc.jar
, facing similar issue.
Java version is openjdk version "17.0.12" 2024-07-16
Ubuntu 22.04.4 LTS 64-bit
, GNOM Version 42.9
, Windowing System X11
Below is the stack trace
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v2.6.7)
2024-08-05 14:41:22.252 INFO 26831 --- [ main] c.w.t.t.ApplicationLauncher : Starting ApplicationLauncher v1.0-SNAPSHOT using Java 17.0.12 on manvendra-ubuntu with PID 26831 (/home/dev/tracker/time-tracker.jar started by dev in /home/dev/tracker)
2024-08-05 14:41:22.258 DEBUG 26831 --- [ main] c.w.t.t.ApplicationLauncher : Running with Spring Boot v2.6.7, Spring v5.3.19
2024-08-05 14:41:22.262 INFO 26831 --- [ main] c.w.t.t.ApplicationLauncher : The following 1 profile is active: "dev"
Gtk-Message: 14:41:23.264: Failed to load module "canberra-gtk-module"
2024-08-05 14:41:23.538 INFO 26831 --- [ main] c.w.t.t.ApplicationLauncher : Started ApplicationLauncher in 2.039 seconds (JVM running for 2.72)
2024-08-05 14:41:23.588 WARN 26831 --- [JavaFX-Launcher] javafx : Unsupported JavaFX configuration: classes were loaded from 'unnamed module @66048bfd'
2024-08-05 14:41:23.679 DEBUG 26831 --- [ Thread-1] c.w.t.t.services.OfflineService : Internet connection is available.
WARNING: Using GTK 2 library because GTK 3 cannot be loaded
WARNING: The JavaFX GTK 2 library is deprecated and will be removed in a future release
2024-08-05 14:41:25.748 ERROR 26831 --- [lication Thread] c.w.t.t.HelloApplication : Error javafx.scene.web.DirectoryLock$DirectoryAlreadyInUseException: /home/dev/.com.w.t.t.HelloApplication/webview
2024-08-05 14:41:26.119 ERROR 26831 --- [lication Thread] dorkbox.systemTray.SystemTray : GNOME shell detected, but UNKNOWN type. This should never happen. Falling back to GtkStatusIcon. Please create an issue with as many details as possible.
(java:26831): GLib-GObject-WARNING **: 14:41:26.258: cannot register existing type 'GdkDisplayManager'
(java:26831): GLib-CRITICAL **: 14:41:26.258: g_once_init_leave: assertion 'result != 0' failed
(java:26831): GLib-GObject-CRITICAL **: 14:41:26.258: g_object_new_with_properties: assertion 'G_TYPE_IS_OBJECT (object_type)' failed
@kryjak @dorkbox FYI - The workaround is to put System.setProperty("jdk.gtk.version", "3");
in your main method and it works for me.
Running on Fedora 40 with version 4.2.1, I get:
GNOME shell detected, but UNSUPPORTED shell version (46.3.1). Falling back to GtkStatusIcon. Please create an issue with as many details as possible.
Full log;