Hello Guest

Can't launch glfw

  • 1 Replies
  • 4866 Views
Can't launch glfw
« on: January 29, 2020, 04:07:33 »
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?

*

Offline KaiHH

  • ****
  • 334
Re: Can't launch glfw
« Reply #1 on: January 29, 2020, 11:14:10 »
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).