简体   繁体   中英

Eclipse visual editor giving error when trying to run a java UI bean

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

使用“以Java身份运行的应用程序”并确保存在主要方法。

public static void main(String[] args)

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).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM