Re: Error building JOGL with Java 7
Posted by Wade Walker on Aug 03, 2011; 2:31pm
URL: https://forum.jogamp.org/Error-building-JOGL-with-Java-7-tp3217275p3222453.html
I found the problem last night. Apparently javah has changed slightly in Java 1.7. In Java 1.6, when you ran javah on GDI.java, it didn't require that PointerBuffer.class be in the classpath, even though PointerBuffer is used in some parameter lists in GDI.java. In Java 1.7, javah does require that PointerBuffer.class be in the classpath.
To fix the build, find the target "c.build.nativewindow.windowlib.windows" in jogl/make/build-nativewindow.xml, and change classpath from "${classes}" to "${classes}:${gluegen.root}/build/classes". I've tested this on Windows and Linux, and it works on both.