Can't launch glfw

Started by Ryan48, January 29, 2020, 04:07:33

Previous topic - Next topic

Ryan48

I'm new to lwjgl. I was trying to simply create a window. However I do not understand how to resolve this exception

here is the message
Exception in thread "main" java.lang.NoClassDefFoundError: org/lwjgl/glfw/GLFW
   at com.tianyuan.flappy.Main.main(Main.java:9)
Caused by: java.lang.ClassNotFoundException: org.lwjgl.glfw.GLFW
   at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:602)
   at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
   at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
   ... 1 more

can anyone help me?

KaiHH

https://stackoverflow.com/questions/34413/why-am-i-getting-a-noclassdeffounderror-in-java

How to solve this entirely depends on how you invoke the java command, whether you use an IDE and which one you use, whether you use the Java 9+ Module System or the classpath and whether you use a Java build system (like Maven, Gradle, Ant+Ivy).