Closed Krausler closed 1 year ago
If you use LWJGL modules from Maven, and not pre-configured from the website, did you add this module to the jar as well? I assume IntelliJ doesn't compile to the jar, and run that, when you're clicking IDEA's run button? IntelliJ may have automatically resolved the issue for its own build, but not for the jar.
I configured the modules on the LWJGL website and copied the maven code into te pom.xml file and before I've used the STB module everything worked fine even the compiled jar file ran without any errors. And I forgot to say that this is a kotlin project.
Version
3.3.2 (nightly), 3.3.1
Platform
Windows x64
JDK
Oracle OpenJDK version 19.0.1
Module
STB
Bug description
So I found when running my LWJGL Vulkan application that is compiled as a jar file it throws a ClassNotFoundException and NoClassDefFoundError. When I start the application in my IDE (IntelliJ) it works alright but when i build the project and run it from the jar file it throws these two errors. I'm not really sure if this is caused by my application or by the LWJGL implementation.
This error occurs when I'm loading an image via
STBImage.stbi_load
. The weird thing is that this also occured in the IDE then it suddently stoped and only showed up when running the compiled jar. Again I don't know if this is an error in my application what possibly could be because I do get another errror before those 2 that have to do with method invokation. I will add the errors down below.Stacktrace or crash log output