I was going to use both JOGL and NetBeans platform. I have trouble embedding JOGL native libs. Maybe there is a simple way to reuse .nbm
s from NetBeans OpenGL Plugin? Or any other way to do this?
Reusing NBMs from NetBeans OpenGL Pack should work at least for NetBeans 7.1. Have a look at this post: http://netbeans.dzone.com/nb-getting-started-jogl.
If you are using Maven, a quick solution is to create a wrapper module for JOGL and Gluegen with the following dependencies:
<dependencies>
<dependency>
<groupId>org.jogamp.jogl</groupId>
<artifactId>jogl-all-main</artifactId>
<version>2.0-rc9</version>
</dependency>
<dependency>
<groupId>org.jogamp.gluegen</groupId>
<artifactId>gluegen-rt-main</artifactId>
<version>2.0-rc9</version>
</dependency>
</dependencies>
It is essential to add the following public package definitions to the nbm-maven-plugin
configuration:
<publicPackages>
<publicPackage>com.jogamp.*</publicPackage>
<publicPackage>javax.media.*</publicPackage>
<publicPackage>jogamp.*</publicPackage>
</publicPackages>
I suppose a wrapper module can be created from NetBeans IDE, though I haven't tried that.