NIXOS /nix/store/yr5065y6vcf380lh7zw982qm35pmlqy8-jetbrains-jdk-jcef-17.0.8-b1000.8/lib/openjdk/bin/java -javaagent:/nix/store/mgyn0p7f0b6kl6g3x07j6n4da3ixwv4k-idea-ultimate-2024.1.3/idea-ultimate/lib/idea_rt.jar=36935:/nix/store/mgyn0p7f0b6kl6g3x07j6n4da3ixwv4k-idea-ultimate-2024.1.3/idea-ultimate/bin -Dfile.encoding=UTF-8 -classpath /home/daniyar/.m2/repository/org/openjfx/javafx-controls/17.0.6/javafx-controls-17.0.6.jar:/home/daniyar/.m2/repository/org/openjfx/javafx-graphics/17.0.6/javafx-graphics-17.0.6.jar:/home/daniyar/.m2/repository/org/openjfx/javafx-base/17.0.6/javafx-base-17.0.6.jar:/home/daniyar/.m2/repository/org/openjfx/javafx-fxml/17.0.6/javafx-fxml-17.0.6.jar:/home/daniyar/.m2/repository/org/openjfx/javafx-web/17.0.6/javafx-web-17.0.6.jar:/home/daniyar/.m2/repository/org/openjfx/javafx-swing/17.0.6/javafx-swing-17.0.6.jar:/home/daniyar/.m2/repository/org/openjfx/javafx-swing/17.0.6/javafx-swing-17.0.6-linux.jar:/home/daniyar/.m2/repository/org/openjfx/javafx-media/17.0.6/javafx-media-17.0.6.jar:/home/daniyar/.m2/repository/org/jetbrains/kotlin/kotlin-stdlib-common/1.8.10/kotlin-stdlib-common-1.8.10.jar:/home/daniyar/.m2/repository/org/jetbrains/annotations/13.0/annotations-13.0.jar -p /home/daniyar/.m2/repository/com/fasterxml/jackson/core/jackson-databind/2.14.2/jackson-databind-2.14.2.jar:/home/daniyar/.m2/repository/org/openjfx/javafx-base/17.0.6/javafx-base-17.0.6-linux.jar:/home/daniyar/.m2/repository/org/jetbrains/kotlin/kotlin-stdlib/1.8.10/kotlin-stdlib-1.8.10.jar:/home/daniyar/.m2/repository/com/github/almasb/fxgl/17.3/fxgl-17.3.jar:/home/daniyar/.m2/repository/org/openjfx/javafx-web/17.0.6/javafx-web-17.0.6-linux.jar:/home/daniyar/.m2/repository/com/github/almasb/fxgl-scene/17.3/fxgl-scene-17.3.jar:/home/daniyar/.m2/repository/org/openjfx/javafx-graphics/17.0.6/javafx-graphics-17.0.6-linux.jar:/home/daniyar/.m2/repository/org/kordamp/bootstrapfx/bootstrapfx-core/0.4.0/bootstrapfx-core-0.4.0.jar:/home/daniyar/.m2/repository/com/gluonhq/attach/storage/4.0.17/storage-4.0.17.jar:/home/daniyar/.m2/repository/org/controlsfx/controlsfx/11.1.2/controlsfx-11.1.2.jar:/home/daniyar/.m2/repository/com/github/almasb/fxgl-core/17.3/fxgl-core-17.3.jar:/home/daniyar/.m2/repository/com/fasterxml/jackson/core/jackson-annotations/2.14.2/jackson-annotations-2.14.2.jar:/home/daniyar/.m2/repository/com/gluonhq/attach/util/4.0.17/util-4.0.17.jar:/home/daniyar/.m2/repository/com/gluonhq/attach/audio/4.0.17/audio-4.0.17.jar:/home/daniyar/.m2/repository/com/fasterxml/jackson/core/jackson-core/2.14.2/jackson-core-2.14.2.jar:/home/daniyar/.m2/repository/org/kordamp/ikonli/ikonli-core/12.3.1/ikonli-core-12.3.1.jar:/home/daniyar/Documents/Project/TheWalker/target/classes:/home/daniyar/.m2/repository/com/github/almasb/fxgl-gameplay/17.3/fxgl-gameplay-17.3.jar:/home/daniyar/.m2/repository/com/github/almasb/fxgl-entity/17.3/fxgl-entity-17.3.jar:/home/daniyar/.m2/repository/com/gluonhq/attach/lifecycle/4.0.17/lifecycle-4.0.17.jar:/home/daniyar/.m2/repository/org/openjfx/javafx-media/17.0.6/javafx-media-17.0.6-linux.jar:/home/daniyar/.m2/repository/org/kordamp/ikonli/ikonli-javafx/12.3.1/ikonli-javafx-12.3.1.jar:/home/daniyar/.m2/repository/org/openjfx/javafx-fxml/17.0.6/javafx-fxml-17.0.6-linux.jar:/home/daniyar/.m2/repository/net/synedra/validatorfx/0.4.0/validatorfx-0.4.0.jar:/home/daniyar/.m2/repository/org/openjfx/javafx-controls/17.0.6/javafx-controls-17.0.6-linux.jar:/home/daniyar/.m2/repository/eu/hansolo/tilesfx/11.48/tilesfx-11.48.jar:/home/daniyar/.m2/repository/com/github/almasb/fxgl-io/17.3/fxgl-io-17.3.jar:/home/daniyar/.m2/repository/com/dlsc/formsfx/formsfx-core/11.6.0/formsfx-core-11.6.0.jar -m org.servlets.thewalker/org.servlets.thewalker.HelloApplication
Loading library prism_es2 from resource failed: java.lang.UnsatisfiedLinkError: /home/daniyar/.openjfx/cache/17.0.6/libprism_es2.so: libGL.so.1: cannot open shared object file: No such file or directory
java.lang.UnsatisfiedLinkError: /home/daniyar/.openjfx/cache/17.0.6/libprism_es2.so: libGL.so.1: cannot open shared object file: No such file or directory
at java.base/jdk.internal.loader.NativeLibraries.load(Native Method)
at java.base/jdk.internal.loader.NativeLibrariesstaticPipelineRunnable.init(QuantumRenderer.java:92)
at javafx.graphics/com.sun.javafx.tk.quantum.QuantumRendererNativeLibraryImpl.open(NativeLibraries.java:388)
at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:232)
at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:174)
at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2394)
at java.base/java.lang.Runtime.load0(Runtime.java:755)
at java.base/java.lang.System.load(System.java:1953)
at javafx.graphics/com.sun.glass.utils.NativeLibLoader.installLibraryFromResource(NativeLibLoader.java:217)
at javafx.graphics/com.sun.glass.utils.NativeLibLoader.loadLibraryFromResource(NativeLibLoader.java:197)
at javafx.graphics/com.sun.glass.utils.NativeLibLoader.loadLibraryInternal(NativeLibLoader.java:138)
at javafx.graphics/com.sun.glass.utils.NativeLibLoader.loadLibrary(NativeLibLoader.java:54)
at javafx.graphics/com.sun.glass.ui.gtk.GtkApplication.lambda6(GtkApplication.java:195)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:318)
at javafx.graphics/com.sun.glass.ui.gtk.GtkApplication.(GtkApplication.java:179)
at javafx.graphics/com.sun.glass.ui.gtk.GtkPlatformFactory.createApplication(GtkPlatformFactory.java:41)
at javafx.graphics/com.sun.glass.ui.Application.run(Application.java:146)
at javafx.graphics/com.sun.javafx.tk.quantum.QuantumToolkit.startup(QuantumToolkit.java:291)
at javafx.graphics/com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:293)
at javafx.graphics/com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:163)
at javafx.graphics/com.sun.javafx.application.LauncherImpl.startToolkit(LauncherImpl.java:659)
at javafx.graphics/com.sun.javafx.application.LauncherImpl.launchApplicationWithArgs(LauncherImpl.java:410)
at javafx.graphics/com.sun.javafx.application.LauncherImpl.launchApplication(LauncherImpl.java:364)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at java.base/sun.launcher.LauncherHelperFXHelper.main(LauncherHelper.java:1082)
Caused by: java.lang.RuntimeException: java.lang.UnsatisfiedLinkError: no glassgtk3 in java.library.path: /nix/store/v2ny69wp81ch6k4bxmp4lnhh77r0n4h1-zlib-1.3.1/lib:/usr/java/packages/lib:/usr/lib64:/lib64:/lib:/usr/lib
at javafx.graphics/com.sun.javafx.tk.quantum.QuantumToolkit.startup(QuantumToolkit.java:301)
at javafx.graphics/com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:293)
at javafx.graphics/com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:163)
at javafx.graphics/com.sun.javafx.application.LauncherImpl.startToolkit(LauncherImpl.java:659)
at javafx.graphics/com.sun.javafx.application.LauncherImpl.launchApplicationWithArgs(LauncherImpl.java:410)
at javafx.graphics/com.sun.javafx.application.LauncherImpl.launchApplication(LauncherImpl.java:364)
... 5 more
Caused by: java.lang.UnsatisfiedLinkError: no glassgtk3 in java.library.path: /nix/store/v2ny69wp81ch6k4bxmp4lnhh77r0n4h1-zlib-1.3.1/lib:/usr/java/packages/lib:/usr/lib64:/lib64:/lib:/usr/lib
at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2434)
at java.base/java.lang.Runtime.loadLibrary0(Runtime.java:818)
at java.base/java.lang.System.loadLibrary(System.java:1989)
at javafx.graphics/com.sun.glass.utils.NativeLibLoader.loadLibraryInternal(NativeLibLoader.java:166)
at javafx.graphics/com.sun.glass.utils.NativeLibLoader.loadLibrary(NativeLibLoader.java:54)
at javafx.graphics/com.sun.glass.ui.gtk.GtkApplication.lambda6(GtkApplication.java:195)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:318)
at javafx.graphics/com.sun.glass.ui.gtk.GtkApplication.(GtkApplication.java:179)
at javafx.graphics/com.sun.glass.ui.gtk.GtkPlatformFactory.createApplication(GtkPlatformFactory.java:41)
at javafx.graphics/com.sun.glass.ui.Application.run(Application.java:146)
at javafx.graphics/com.sun.javafx.tk.quantum.QuantumToolkit.startup(QuantumToolkit.java:291)
... 10 more
Assistant
The error you're encountering is related to missing native libraries (libGL.so.1 and libXtst.so.6) that JavaFX needs to function correctly on your system. These libraries are generally part of the OpenGL (for ) and X11 (for ) graphics systems, which are required for rendering and GUI operations on Linux.
If you're using a Debian-based system (like Ubuntu):
sudo apt-get install libgl1-mesa-glx
For Red Hat-based systems (like Fedora or CentOS):
sudo dnf install mesa-libGL
For libXtst.so.6:
On a Debian-based system:
sudo apt-get install libxtst6
On Red Hat-based systems:
sudo dnf install libXtst
Ensure Graphics Drivers are Installed:
Some systems may not have all necessary graphics drivers installed. Ensure you have a compatible graphics driver installed on your system. For NVIDIA, AMD, or Intel integrated graphics, check your distribution’s instructions for installing these drivers.
Try Rebuilding or Using Pre-built JavaFX:
Ensure you're using the correct version of JavaFX for your platform (Linux in this case). Sometimes, getting a pre-built OpenJFX package for your specific system can alleviate these issues, as they often come pre-configured with the required libraries.
Environment Variables:
Make sure your environment variables and paths are correctly set up so that Java can find the libraries. You might need to add the library path to LD_LIBRARY_PATH like so:
export LD_LIBRARY_PATH=/usr/lib/:$LD_LIBRARY_PATH
NixOS Specific:
Since you're using NixOS, you might need to ensure that you have the correct Nix packages installed for these libraries. If these aren't installed by default, you can include them in your configuration using:
environment.systemPackages = with pkgs; [
mesa
libXtst
...
];
After installing the necessary packages and ensuring you have all proper drivers, try running your application again. This should resolve the errors regarding missing native dependencies.