NetBeans 6.5 and JOGL 2 NB Pack - Matisse "Can't load component class jav...."

Just installed JOGL 2 NB pack and noticed I can’t drag GLCanvases from the pallete into the edit window. Just wondering if anybody is having the same problem. Error reported:


"Cannot load component class javax.media.opengl.awt.GLCanvas" from JAR file :/home/XXX.  The class must be compiled and must be on the classpath of the project to which this form belongs."

hi monty_hall;

i know, the form designer integration is broken for JOGL2… I am not sure if it is worth to fix it (things got more complicated)… but there is an easy workaround:

  1. use a plain Canvas in the designer
  2. Right click, customize code
  3. configure it to use a custom (previously written) method which creates a GLCanvas instead of ‘new GLCanvas(…)’ as Bean creation code

same for GLJPAnel… hope that helps

thanks for reporting

[edit] version 0.6 does only support NetBeans 6.7 and later, ill update the dependencies which will prevent installation on 6.5 in future.