0

When I try to run my java code for processing it shows an error "selection does not contain applet". This is how I am supposed to run my code.

Here is my code:

package proccesing;
import processing.core.*;

public class proccesing extends PApplet {

    public void setup() {
        background(100,100);
    }

    public void draw() {
        line(0,0,0,100);
    }
}
1

1 Answer 1

1

As of Processing 3, PApplet no longer extends Applet. In other words, you can't deploy as an applet anymore.

You could try using the Applet exporting tool, but you're much better off using Processing.js to deploy as JavaScript. Applets are pretty much dead and shouldn't really be used anymore.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.