/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=39775:/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/org/openjfx/javafx-web/17.0.6/javafx-web-17.0.6-linux.jar:/home/daniyar/.m2/repository/org/openjfx/javafx-controls/17.0.6/javafx-controls-17.0.6-linux.jar:/home/daniyar/.m2/repository/net/synedra/validatorfx/0.4.0/validatorfx-0.4.0.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/.m2/repository/org/openjfx/javafx-media/17.0.6/javafx-media-17.0.6-linux.jar:/home/daniyar/.m2/repository/com/github/almasb/fxgl-entity/17.3/fxgl-entity-17.3.jar:/home/daniyar/.m2/repository/com/dlsc/formsfx/formsfx-core/11.6.0/formsfx-core-11.6.0.jar:/home/daniyar/.m2/repository/org/kordamp/ikonli/ikonli-javafx/12.3.1/ikonli-javafx-12.3.1.jar:/home/daniyar/.m2/repository/com/github/almasb/fxgl-core/17.3/fxgl-core-17.3.jar:/home/daniyar/.m2/repository/eu/hansolo/tilesfx/11.48/tilesfx-11.48.jar:/home/daniyar/.m2/repository/com/fasterxml/jackson/core/jackson-databind/2.14.2/jackson-databind-2.14.2.jar:/home/daniyar/.m2/repository/com/github/almasb/fxgl-scene/17.3/fxgl-scene-17.3.jar:/home/daniyar/.m2/repository/com/github/almasb/fxgl-gameplay/17.3/fxgl-gameplay-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/lifecycle/4.0.17/lifecycle-4.0.17.jar:/home/daniyar/.m2/repository/com/gluonhq/attach/storage/4.0.17/storage-4.0.17.jar:/home/daniyar/.m2/repository/org/jetbrains/kotlin/kotlin-stdlib/1.8.10/kotlin-stdlib-1.8.10.jar:/home/daniyar/Documents/Project/TheWalker/target/classes:/home/daniyar/.m2/repository/com/gluonhq/attach/audio/4.0.17/audio-4.0.17.jar:/home/daniyar/.m2/repository/org/controlsfx/controlsfx/11.1.2/controlsfx-11.1.2.jar:/home/daniyar/.m2/repository/com/gluonhq/attach/util/4.0.17/util-4.0.17.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/org/openjfx/javafx-base/17.0.6/javafx-base-17.0.6-linux.jar:/home/daniyar/.m2/repository/org/openjfx/javafx-fxml/17.0.6/javafx-fxml-17.0.6-linux.jar:/home/daniyar/.m2/repository/com/github/almasb/fxgl-io/17.3/fxgl-io-17.3.jar:/home/daniyar/.m2/repository/com/github/almasb/fxgl/17.3/fxgl-17.3.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 messages you're encountering indicate that your JavaFX application is unable to load certain native libraries. Specifically, it cannot find libprism_es2.so and libglassgtk3.so, which are essential for rendering and UI components on platforms using OpenGL and GTK, respectively. This is typically due to missing dependencies on your system. Here's how you can address this issue:
User
а для nixos
Assistant
Для NixOS установка необходимых библиотек немного отличается, так как NixOS использует уникальную систему управления пакетами и конфигурацию. Чтобы решить проблему с отсутствующими библиотеками libGL.so.1 и libXtst.so.6, вы можете выполнить следующие шаги:
Откройте файл конфигурации NixOS:
Обычно этот файл находится по пути /etc/nixos/configuration.nix.
Добавьте необходимые пакеты в систему:
Вам нужно будет добавить OpenGL и X11 библиотеки в секцию environment.systemPackages. Примерное содержимое может выглядеть так:
Install Missing OpenGL Libraries:
The error mentions that libGL.so.1 is not found. This library is part of the OpenGL suite, and you can install it as follows:
Install Missing GTK Libraries:
Similarly, libXtst.so.6 is missing, which is part of the Xtst (X11 Test) library. Install it using the following commands:
Verify JavaFX Modules and Path:
Ensure that your JavaFX libraries and modules are correctly set up in your environment. Make sure the paths in your CLASSPATH and module paths (-p) are correct and accessible.
Cross-Verify Installation and Nix Configuration:
If you're using NixOS or have nix on your system, ensure that appropriate packages are available in your shell environment. You might need to adjust your nix configuration to include these system libraries.
After performing these installations, try running your application again. If it still does not work, double-check that all required libraries (such as those for GTK and OpenGL) are present and correctly linked. Additionally, ensure your system is configured to support graphical applications and has the necessary runtime environments set up.
{ config, pkgs, ... }:
{
environment.systemPackages = with pkgs; [
# Другие системные пакеты
libGL
libXtst
];
# При необходимости включите поддержку OpenGL
hardware.opengl.enable = true;
}
Пересоберите вашу систему:
После внесения изменений в configuration.nix выполните команду для пересборки системы:
bash
sudo nixos-rebuild switch
Это обновит систему, установив недостающие пакеты и пересоберёт конфигурацию NixOS.
Verify JavaFX Configuration:
Убедитесь, что настройки JavaFX корректны в вашем проекте. Это может включать корректное указание путей к JavaFX библиотекам через параметры -p или указание их в файле build.sbt, pom.xml, или другом менеджере зависимости, который вы используете.
После выполнения этих шагов проблема с отсутствующими библиотеками должна быть решена. Если вы столкнетесь с новыми проблемами или предупреждениями, следуйте их инструкциям для дальнейшего устранения неполадок.