Joseph me Altfeld
Joseph me Altfeld

Reputation: 1

JOGL sample code compile error "cannot access WriteCloneable"

I get JOGL library form jogamp.org and extract Directory structure is not changed I write sample code as below

import com.jogamp.opengl.GL;
import com.jogamp.opengl.GLAutoDrawable;
import com.jogamp.opengl.GLCapabilities;
import com.jogamp.opengl.GLEventListener;
import com.jogamp.opengl.GLProfile;
import com.jogamp.newt.event.WindowAdapter;
import com.jogamp.newt.event.WindowEvent;
import com.jogamp.newt.opengl.GLWindow;
import com.jogamp.opengl.util.Animator;

public class FirstStepNewt implements GLEventListener { //(1)
    
    public static void main(String[] args) {
        new FirstStepNewt();
    }
    
    public FirstStepNewt() {
    GLCapabilities caps = new GLCapabilities(GLProfile.get(GLProfile.GL2));//(2)
    GLWindow glWindow = GLWindow.create(caps); //(3)
    glWindow.setTitle("First demo (Newt)"); //(4)
    glWindow.setSize(300, 300); //(5)

type here

and compile then error occur at GLWindow.create error message is cannot acceess WriteCloneable how can I solve this problem

I check classpath I consult JOGL api but word WriteCloneable is not found

Upvotes: 0

Views: 41

Answers (0)

Related Questions