Skip to content

Main java class loads libraries from hardcoded relative path in working directory, instead of relative to the location of the main class library #122

Open

Description

@WardenDrew

See below. Easy enough to work around for now, but useful to know and fix. Long term, packaging, or on-the-fly installing a copy of the desired java version for this application on install would make this easier as well for users juggling many different java versions for different apps.

REDACTED@REDACTED MINGW64 /d/Java/temurin-17.0.15/bin
$ ./java -jar "C:\Program Files (x86)\VSModelCreator\vsmodelcreator.jar"
Exception in thread "main" java.lang.UnsatisfiedLinkError: Can't load library: D:\Java\temurin-17.0.15\bin\.\natives\windows\lwjgl64.dll
        at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2398)
        at java.base/java.lang.Runtime.load0(Runtime.java:755)
        at java.base/java.lang.System.load(System.java:1970)
        at org.lwjgl.Sys$1.run(Sys.java:70)
        at java.base/java.security.AccessController.doPrivileged(AccessController.java:318)
        at org.lwjgl.Sys.doLoadLibrary(Sys.java:66)
        at org.lwjgl.Sys.loadLibrary(Sys.java:87)
        at org.lwjgl.Sys.<clinit>(Sys.java:117)
        at org.lwjgl.opengl.Display.<clinit>(Display.java:135)
        at at.vintagestory.modelcreator.ModelCreator.initDisplay(Unknown Source)
        at at.vintagestory.modelcreator.ModelCreator.<init>(Unknown Source)
        at at.vintagestory.modelcreator.Start.main(Unknown Source)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions