LWJGL / lwjgl3

LWJGL is a Java library that enables cross-platform access to popular native APIs useful in the development of graphics (OpenGL, Vulkan, bgfx), audio (OpenAL, Opus), parallel computing (OpenCL, CUDA) and XR (OpenVR, LibOVR, OpenXR) applications.
https://www.lwjgl.org
BSD 3-Clause "New" or "Revised" License
4.67k stars 628 forks source link

Why Does Netbeans Fail to Find Global Libraries ? #852

Closed Jillinger closed 1 year ago

Jillinger commented 1 year ago

Question

I downloaded a customized build, and followed these steps, choosing the option 'in the Sources tab add all .jar files with sources in their name', in Netbeans.

I then used the little test example on this page, but the build fails. error: package org.lwjgl does not exist

I tried the other options, but they all failed. What worked for me, was adding the .jar files to Libraries in the Project Tree. However, the jars still aren't found. 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.

I'm using Netbeans 8.2 on Windows.

Jillinger commented 1 year ago

I found the solution here. Actually, it was my fault. I didn't follow the lwjgl3-wiki installation instructions properly.