Click here to Skip to main content
15,884,697 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
My libGDX project created using the libGDX tool won't run, I get this error:

[LWJGL] Failed to load a library. Possible solutions:
	a) Add the directory that contains the shared library to -Djava.library.path or -Dorg.lwjgl.librarypath.
	b) Add the JAR that contains the shared library to the classpath.
[LWJGL] Enable debug mode with -Dorg.lwjgl.util.Debug=true for better diagnostics.
[LWJGL] Enable the SharedLibraryLoader debug mode with -Dorg.lwjgl.util.DebugLoader=true for better diagnostics.
Exception in thread "main" java.lang.UnsatisfiedLinkError: Failed to locate library: liblwjgl.dylib
	at org.lwjgl.system.Library.loadSystem(Library.java:162)
	at org.lwjgl.system.Library.loadSystem(Library.java:62)
	at org.lwjgl.system.Library.<clinit>(Library.java:50)
	at org.lwjgl.system.MemoryUtil.<clinit>(MemoryUtil.java:97)
	at org.lwjgl.system.Pointer$Default.<clinit>(Pointer.java:67)
	at org.lwjgl.system.Callback.<clinit>(Callback.java:41)
	at com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application.initializeGlfw(Lwjgl3Application.java:81)
	at com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application.<init>(Lwjgl3Application.java:91)
	at com.mygdx.game.DesktopLauncher.main(DesktopLauncher.java:12)


this is my current project structure in IntelliJ for this project:
azul-15 (my jdk15 installation) as project SDK.
in libraries I have imported all the class files from my lwjgl download.
also has the ones added by the libgdx project setup tool

What I have tried:

I tried download Lwjgl and adding all the class files to the IntelliJ project structure libraries
Posted
Comments
Richard MacCutchan 10-Dec-21 8:05am    
Have you checked that the library or jar file are installed as required by the error messages?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900