Something wrong with the OPENGL

edited February 2016 in Using Processing
void setup() {
  size(600,600, OPENGL);
} 

void draw() {
 translate(width/2, height/2, -600);
 //box(100);
 //sphere(500);
}

When I run this code, the system always shows the error : Could not run the sketch (Target VM failed to initialize).

So I can not even use the OPENGL API. Please help me resolve this bug.

PS. My computer system is Mac OS EI Captain.

Answers

  • you could update your graphic card driver

    or check the wontstart entries by clicking on the tag above......

  • maybe the sketch is too short

    maybe you need to disable your antivirus program

  • (this is a mac so is probably different again)

    can you post the entire error (assuming there's a stack trace)

Sign In or Register to comment.