views:

78

answers:

2

Hi all,

I was able to successfully create and run a UI Java class by using the eclipse visual editor. After few days when I opened eclipse and tried running the same class by doing this -> Run > Run as > Java Bean, eclipse errors out with the following message-

"iwav0120e Launch failed no java bean found"

It does not show the visual editor for that particular UI class. How do I make it consider the class as a Java Visual Class?

Thanks,
-Keshav

+1  A: 

Use "run as Java application" and make sure a main method exists.

public static void main(String[] args)
Romain Hippeau
A: 

The only solution to solve this error was copy the code, create a NEW visual class and paste the copied code in it. Visual editor starts to work after this. Then I rename the new class back to its original name (after deleting the earlier file of course).

Keshav