LWJGL Forum

Programming => OpenGL => Topic started by: Jehan on July 06, 2020, 21:53:19

Title: no lwjgl in java.library.path, Java Jarsplice Mac Lwjgl
Post by: Jehan on July 06, 2020, 21:53:19
Hello everyone, I built an executable .jar  with Jarsplice which runs well on windows without problem, but when I run it on mac, I have the following error :

java.lang.UnsatisfiedLinkError: no lwjgl in java.library.path

I read on some topics that I have to add an additional command on the mac terminal like the following to launch the program :
java -jar program.jar -Djava.library.path="path/to/natives"

When I run:
java -jar program.jar -Djava.library.path=""
I get the same error ...

I DON'T KNOW which path to indicate after -Djava.library.path=

can someone explain to me what i should put after the java.library.path= ?

My .dll files (including lwjgl.dll) are located directly inside my .jar when I open it with winrar, they (the .dlls) are not in a sub-folder ...




something else,

in my program.jar file, I have a META-INF folder with a MANIFEST.MF file inside :

Manifest-Version: 1.0
Launcher-VM-Args:
Launcher-Main-Class: main.Main
Main-Class: org.ninjacave.jarsplice.JarSpliceLauncher

Should i put my command -Djava.library.path="" after "Launcher-VM-Args:" directly in the manifest ???

Thankyou for your answers and have a good day !

Jehan
Title: Re: no lwjgl in java.library.path, Java Jarsplice Mac Lwjgl
Post by: kappa on July 06, 2020, 22:53:16
on mac .dll files are not used, you need to make sure the mac natives are included which are the *.dylib or *.jnilib files.
Title: Re: no lwjgl in java.library.path, Java Jarsplice Mac Lwjgl
Post by: Jehan on July 15, 2020, 15:31:56
Thank you Kappa ;)