Problems getting started with gluten
Posted by Jennifer Milburn on Jan 22, 2012; 7:50pm
URL: https://forum.jogamp.org/Problems-getting-started-with-gluten-tp3679814.html
I'm just getting started with gluegen and I'm running into several problems. (Probably fairly dumb ones). I've downloaded the current version using git and tried to build it a couple of different ways.
(1) Using the Netbeans project I can build. However, the source code appears to have a whole set of unsatisfied dependencies mainly related to import of android (e.g. import android.*). I'd like to include the android jar in the class path so these error flags go away but I can't find a simple android.jar. It appears that you need to install a complete android SDK and I'm only interested in including the classes that are needed to satisfy gluegen.
(2) I'm really not interested in building gluegen but simply using it to generate the JNI interface required to interface with a couple of different scientific cameras using their header files. I've tried simply downloading the .7z file for the operating system (MacOS) and running gluengen from the jar file (i.e. java -jar gluegen -I /mypath/to/example) using one of the examples in the doc folder but I get the same error:
Exception in thread "main" java.lang.NoClassDefFoundError: antlr/RecognitionException
Caused by: java.lang.ClassNotFoundException: antlr.RecognitionException
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
I have the ant-antlr.jar file in the same folder as the gluegen.jar file and I can't figure out what I'm doing wrong.
Anyone have any clue as to what's wrong?
Sincerely,
Jennifer Milburn
jwm@astro.caltech.edu