Login  Register

Re: Problem with GLProfile and jogl2-rc2

Posted by gouessej on Oct 27, 2011; 9:20pm
URL: https://forum.jogamp.org/Problem-with-GLProfile-and-jogl2-rc2-tp3447491p3459180.html

I resolved this problem by setting jogamp.gluegen.UseTempJarCache to false but it was not the best solution. I found a better fix, I put all JARs containing the native libraries into the class path and then it worked.

I did this to use your thing in Maven, I put this in the parent POM file of Ardor3D and in the sub-project containing my own JOGL 2.0 renderer:
<repository>
<id>maven.iscpif.fr</id>
<name>ISCPIF repository</name>
<url>http://maven.iscpif.fr/thirdparty/</url>
</repository>

<dependency>
<groupId>org.jogamp.jogl</groupId>
<artifactId>jogl.all</artifactId>
<version>2.0-b526-20111018</version>
</dependency>
<dependency>
<groupId>org.jogamp.gluegen</groupId>
<artifactId>gluegen-rt</artifactId>
<version>2.0-b424-20111018</version>
</dependency>

I use a kind of mix between Ant, Maven and Eclipse builder to build my game.

Edit.: I understand your problem. The automatic loading does not find the JAR because it is not called jogl.all.jar. Is there a way of forcing Maven not to put the version into the name of the JAR? Another solution would consist in modifying Maven script or using an Ant script to rename the JARs or you could use a special classloader able to use a regular expression to find the JARs, for example gluegen-rt*.jar instead of gluegen-rt-2.0-b424-20111018.jar.
Julien Gouesse | Personal blog | Website