no lwjgl in java.library.path, Java Jarsplice Mac Lwjgl

Started by Jehan, July 06, 2020, 21:53:19

Previous topic - Next topic

Jehan

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

kappa

on mac .dll files are not used, you need to make sure the mac natives are included which are the *.dylib or *.jnilib files.