Login  Register

Re: how to run jogl+j3d successfully?

Posted by gouessej on Aug 27, 2012; 3:19pm
URL: https://forum.jogamp.org/how-to-run-jogl-j3d-successfully-tp4025876p4025906.html

I'm sorry, I used them during Siggraph with another machine, I don't have these JARs anymore, you will have to rebuild Java 3D yourself or contact Harvey on Github.

lib/ext folder is the directory reserved for official extensions, they are treated as system libraries, it is not a trivial difference in term of security. When you use any Java application, Java tries to use them first. If any Java application or applets needs to use another version of a third party that should have never been put into this directory, it will use the version in lib/ext instead of the one in the classpath. Putting everything into lib/ext defeats the purpose of the classpath. "Optional packages" or "standard extensions" should be used only for frozen APIs. Some softwares use none of these mechanisms to retrieve classes, they build their own system class loader with their own path, for example Apache Tomcat does so.

Just look at StackOverflow, some people already gave similar answers. Using the classpath is not difficult and I have wasted a lot of time with students and engineers with messy environments when using JOGL and Java3D. The problem is that even some commercial softwares wrap some existing APIs and put them into this directory...

If you're really convinced I'm totally wrong, just put JOGL 1.1.1a JARs into lib/ext and try to run an applet using JOGL 2.0...
Julien Gouesse | Personal blog | Website