PDA

View Full Version : Having Problem With Java GUI Program Made Using Netbeans


Puddings
11-08-2008, 07:05 AM
Hi, I've designed the GUI of my program using the Netbeans IDE GUI builder.

I'm having this problem where I can't run the generated code to test the GUI. It says something about missing main class.

Can anyone help me on this? I'm really new to Java.

shyam
11-08-2008, 02:13 PM
you'll have to add the main method

class YourClass {
public static void main(String[] args) {
// invoke ur class
}
}

the main method is the entry point for any java application that you want to run using the java executable