I'm reading the book "Head First Java" and have difficulties with some code: import java.awt.*; import java.awt.event.*; class Party {
public void buildlnvite() { Frame f = new Frame(); Label l = new Label("Party at Tim's"); Button b = new Button("You bet"); Button c = new Button("Schoot me"); Panel p = new Panel(); p.add(l);
Hello, Sounds like you're trying to run your Party class without a main method. The main method is what the JVM uses to start off running a java program and every Java Program has a main method somewhere. The JVM requires it to have the following method signature: