Ok, I opened my eyes wider, and the instructions here do work: http://www.java-gaming.org/index.php/topic,1474.60.html
The tip about setting the current path using “.” was crucial
/////////////////////
Hello everybody,
I have an already working JOGL project in Eclipse.
I want to be able to deploy my project to jar so I can run it on other computers. That’s why I haven’t put the jogl files (jar & dll) in the program files folder, but I have configured Eclipse to use those specific files when it builds this project. Everything works fine from Eclipse.
However, when I go to File>Export… and choose export to JAR, the JAR gets exported. But when I want to run the app from the command line: java -jar project.jar it gives me a NoClassDefFoundError for GLEventListener.
I thought that is the project works in Eclipse, it should be a breeze to make it work as a JAR. I’m so stupid for not testing it until now and there are only 7 hours left until I have to give it to school. It’s also 1.30 a.m here, so I maybe it’s a really simple solution that I don’t see.
Any idea is welcome!