Posted by
jacksmash on
Nov 17, 2011; 3:14pm
URL: https://forum.jogamp.org/can-t-build-in-Netbeans-this-is-frustrating-tp3516072.html
I've been scratching my head over this for way too long now. I've followed these tutorials:
http://jogamp.org/wiki/index.php/Setting_up_a_JogAmp_project_in_your_favorite_IDE#NetBeans_IDEand
http://jogamp.org/wiki/index.php/Using_JOGL_in_AWT_SWT_and_Swing#JOGL_in_Swing_using_the_GLJPanelIt doesn't matter whether I copy the code for the GLCanvas or the GLJPanel, I still get the same errors:
no suitable constructor found for GLCanvas(javax.media.opengl.GLCapabilities)
constructor javax.media.opengl.awt.GLCanvas.GLCanvas(javax.media.opengl.GLCapabilitiesImmutable,javax.media.opengl.GLCapabilitiesChooser,javax.media.opengl.GLContext,java.awt.GraphicsDevice) is not applicable
(actual and formal argument lists differ in length)
constructor javax.media.opengl.awt.GLCanvas.GLCanvas(javax.media.opengl.GLCapabilitiesImmutable,javax.media.opengl.GLContext) is not applicable
(actual and formal argument lists differ in length)
constructor javax.media.opengl.awt.GLCanvas.GLCanvas(javax.media.opengl.GLCapabilitiesImmutable) is not applicable
(actual argument javax.media.opengl.GLCapabilities cannot be converted to javax.media.opengl.GLCapabilitiesImmutable by method invocation conversion)
constructor javax.media.opengl.awt.GLCanvas.GLCanvas() is not applicable
(actual and formal argument lists differ in length)
This is weird because GLCapabilities implements the GLCapabilitiesImmutable interface. So the typing is obviously correct.
WHen I try to build, I get this error:
cannot access com.jogamp.common.type.WriteCloneable
class file for com.jogamp.common.type.WriteCloneable not found
final GLCanvas glcanvas = new GLCanvas( glcapabilities );
Please help!