Problem with LWJGL 3.3x I have followed step to step

Started by DeafMan1983, April 23, 2022, 14:51:11

Previous topic - Next topic


Hello everyone

I have readden docummentation like I have create name "LWJGL3" in User libraries from Eclipse
And add customizated jars from Build and Download

Then I have created LWJGL3 project and I have set up Build Path -> Libraries add Libraries -> User Library -> LWJGL3 then it get successfully.
It works fine.

Then I create
like this

import org.lwjgl.glfw.*;

public class DisplayManager {
	private boolean status;
	private long window;
	public final static DisplayManager Create(String title, int width, int height)
		DisplayManager dmClass = new DisplayManager();
		dmClass.status = GLFW.glfwInit();
		if (!dmClass.status)
			System.out.printf("Error: Initializing with GLFW 3, %s \n", dmClass.status);
		else {
			dmClass.window = GLFW.glfwCreateWindow(width, height, title, 0, 0);
			if (dmClass.window == 0)
				System.err.printf("Error: Creating GLFWWindow %s", dmClass.window);
		return dmClass;
	public void Make()
	public boolean IsRunning()
		return !GLFW.glfwWindowShouldClose(this.window);
	public void HandleClose()
			GLFW.glfwSetWindowShouldClose(this.window, true);
	public void Poll()
	public void Destroy()
	public long GetWindow()
		return window;

and with static void main()
public class MainApp {

	private static DisplayManager dm;
	public static void main(String[] args) {
		dm = DisplayManager.Create("Hello Window", 1280, 800);
		while (dm.IsRunning())
			// Rendering

Then Eclipse throws error what is that? I never did fail anything. I have proof.
Exception in thread "main" java.lang.NoClassDefFoundError: org/lwjgl/glfw/GLFW
	at DisplayManager.Create(
	at MainApp.main(
Caused by: java.lang.ClassNotFoundException: org.lwjgl.glfw.GLFW
	at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(
	at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(
	at java.base/java.lang.ClassLoader.loadClass(
	... 2 more

But why?? I have told I have downloaded like this in screenshot

Why does it happen? I never fail that.

I already make sure that Creating name in UserLibrary then add external jars then make sure for LWJGL3

How do I fix? If I am wrong?

thank you!
Hello I am deaf Java programmierer