![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
异常
w330685946
这个作者很懒,什么都没留下…
展开
-
editor does not contain a main type的解决方案
作者:pocky 今天用eclipse,当打算run一个带有main函数的class时,出现editor does not contain a main type的错误框。 baidu了一下,迅速解决问题:原来这个class所在包没有被添加到build path中。 解决方法:在左侧的package explorer中右击这个class所在包的上一级目录--build path--use...原创 2014-03-04 15:11:58 · 147 阅读 · 0 评论 -
出现Bad version number in .class file这个问题时,要注意三个方面
java.lang.UnsupportedClassVersionError: Bad version number in .class file 出现这个问题时,要注意三个方面,网上都是简单的说了一下,现总结如下: 1、你所用的代码的jdk与目前的编译环境的jdk不一样,在当前工程上点右键选择"属性",进去后在Java build path进去修改即可。 2、进到当前工程的属...原创 2014-03-07 10:04:29 · 109 阅读 · 0 评论