java菜鸟问题记录当遇到--started with null constructor

本人编写了一个小程序后报错显示:

IWAV0048I Java Bean ManagerTest started with null constructor


经查证后才知道:

That's not an error. That is simply a message to tell you that the Java
Bean Application Launcher used the null constructor of your class to start
it. That means your class was not a standard AWT/Swing subclass so it
couldn't figure out a nicer way of starting it (like it would if it was a
JFrame or a JPanel). We give this info because often when starting with
the null constructor nothing visual happens and people get confused and
don't realize it actually ran because the console would be empty.

When you actually write your application with its own main and use your
class then this message won't show because the code that produces it won't
be in your application. 
 这个不是错误,是程序运行时没有入口,这不是一个application,只是一个Bean,而我的ManagerTest类是main函数,结果检查了一下是因为自己的mian拼错了


这是个极为低级的错误,但是找的时候也挺烦人的,希望有类似问题的同学可以尽快看到,共勉!!!

评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值