Need help at setting up LWJGL

Started by Buzz_Lightzyear, September 27, 2016, 16:00:00

Previous topic - Next topic



I am working since hours, but my LWJGL under Ubuntu 16.04 will not run. :-( I have downloaded the Version 2.9.3 with the package manager. I am using IntelliJ for programming. When I want to compile the example from this page, I am getting the following error:

Exception in thread "main" java.lang.UnsatisfiedLinkError: no lwjgl64 in java.library.path
	at java.lang.ClassLoader.loadLibrary(
	at java.lang.Runtime.loadLibrary0(
	at java.lang.System.loadLibrary(
	at org.lwjgl.Sys$
	at Method)
	at org.lwjgl.Sys.doLoadLibrary(
	at org.lwjgl.Sys.loadLibrary(
	at org.lwjgl.Sys.<clinit>(
	at org.lwjgl.opengl.Display.<clinit>(
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(
	at java.lang.reflect.Method.invoke(
	at com.intellij.rt.execution.application.AppMain.main(

lwjgl64 is missing, ok, but where do i get this file from? I have downloaded the LWJGL from the official page but this file is not there... can someone tell me what I should do now??? The Example on the mentioned page is only for Windows... :-(

THX!!! :-)


When you download LWJGL 2.9.3 from there is a "native/" folder containing the respective native libraries for each platform/OS. Just choose your platform and set java.library.path to that directory.

Besides that: If you are just starting a new LWJGL project, you should _definitely_ use LWJGL 3 from here.
(choose "Nightly - Bleeding edge, possibly broken")
Despite of the name "possibly broken" it is very stable and likely less broken than the "Release" or the "Stable" versions.
And you will always be up to date with cool new libraries, such as bgfx (soon). :)


COOOL!!! THX FOR YOUR HELP!!!  :) :) :) :)

Good night,