Hello Guest

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

  • 2 Replies
  • 329 Views
*

Offline Jehan

  • *
  • 11
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

*

Offline kappa

  • *****
  • 1316
Re: no lwjgl in java.library.path, Java Jarsplice Mac Lwjgl
« Reply #1 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.

*

Offline Jehan

  • *
  • 11
Re: no lwjgl in java.library.path, Java Jarsplice Mac Lwjgl
« Reply #2 on: July 15, 2020, 15:31:56 »
Thank you Kappa ;)