How to make Jogl work with Janel?
Posted by
Cousken on
Jul 09, 2012; 9:20am
URL: https://forum.jogamp.org/How-to-make-Jogl-work-with-Janel-tp4025470.html
Hello all!
I'm a C++ developer who is learning Java and OpenGL by developing a game much like Bay12's Dwarf Fortress.
I've made a nice project that displays a rotating polygon, so that part i've had no problem with. However i'm a bit concerned about the distribution of the final product to less tech savy people using windows. Most people don't know anything about java or how to run it so i want the application to start by double clicking on a file. I tried doing an executable JAR but that doesn't work on my machine, and a .bat file isn't going to cut it since not eveyone has their Path set up to support java.
What i am looking into right now is .exe java launchers, specifically
Janel I set it up correctly as far as i know, but all i get when i run it is a warning message.
When running the Window32 exe i get:
"Error in Java launcher. Error occurred while attempting to find Java class App"When running Console32 i get:
Exception in thread "main" java.lang.NoClassDefFoundError: javax/media/opengl/GLCapabilitiesImmutable
Caused by: java.lang.ClassNotFoundException: javax.media.opengl.GLCapabilitiesImmutable
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
Error in Java launcher. Error occurred while attempting to find Java class App"
Since the application is running just fine from Eclipse or by using java -jar i don't really think it's an issue with itself, what i suspect is that there is some issue with compatibility between Janel and Jogl. I only have two classes,
App with the main loop and
Engine.
Help on solving this issue would be greatly appreciated :) The game will be available for free for everyone so maybe i can use it as enticement? :D I want to point out that my main goal is for anyone who has a JRE installed to be able to double click a file to launch the game.