aspose file tools*
The moose likes Beginning Java and the fly likes Button's action event in Head first java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Button Watch "Button New topic
Author

Button's action event in Head first java

Dinesh Kumar Tadepalli
Greenhorn

Joined: Jun 17, 2009
Posts: 15
I was trying to run the program on pg 360 (head first java) but it gives me a "main" exception. the compiler says it cannot find a main class.

The code is as follows:



Can someone help me what went wrong and why is not able to compile?

thanks
Dinesh Kumar Tadepalli
Greenhorn

Joined: Jun 17, 2009
Posts: 15
sorry... i realized my mistake...

i said java SimpleGui1B.java instead of javac SimpleGui1B.java

thanks

 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Button's action event in Head first java