Processing (3.3) Could not run the sketch

edited March 2017 in Using Processing

My problem has been solved. i would like to delete this post.

Answers

  • Answer ✓

    void main(){

    is this right?... look at the examples...

  • buddy, I have same problem... I worked fine in uni lab, but didnt work in my laptop surface pro 4

  • pleple
    Answer ✓

    your code is wrong should be void setup(){}

  • Changing the code made it work. Thanks guys!

  • I need help i'm a beginner that started using processing 3.3 yesterday and it was working fine. Today i tried using a simple code like

    void main(){
    size(640,360);
    }
    
    void draw(){
    line(pmouseX,pmouseY,mouseX,mouseY);
    }
    

    and it says i could not run the sketch and this error comes out,

    Usage: PApplet [options] [sketch args] See the Javadoc for PApplet for an explanation. Could not run the sketch (Target VM failed to initialize). For more information, read revisions.txt and Help → Troubleshooting.

    I'm using windows 10 and my processor is CPU Type AMD A6-7000 Radeon R4, 5 Compute Cores 2C+3G and downloaded the latest version of Java. Please if someone knows about this issue please reply as soon as possible. Thank you very much.

This discussion has been closed.