为什么我的项目包上有一个感叹号?
我的项目包旁边有一个感叹号!并且它无法正常运行!
该项目是在另一台计算机(我同学的)上创建的。当我尝试运行它时,我得到: 线程“main”中的异常 java.lang.UnsupportedClassVersionError: .class 文件中的版本号错误
我知道我需要更改项目的属性。但如何知道我应该使用哪个版本?
我的环境 操作系统:Mac OSX 10.5.8 IDE:eclipse indigo
原始环境(我同学的) 我不知道
我检查了 mac 更新,但没有可用的更新,所以我想我正在使用适用于我的系统的最新 java 版本。
I have an exclamation mark beside my project package! and it doesn't run properly!!
The project was created in another computer ( my classmate's). When i try to run it i get :
Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad version number in .class file
I understand that i need to change the properties of the project. But how to know which are the properly version that i should use?
My enviroment
OS: Mac osx 10.5.8
IDE: eclipse indigo
original enviroment(my classmate's)
I don't know
I checked the mac updates but there is no update available , so I suppose I'm using the latest java version available for my system.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
感叹号通常表示构建路径存在问题。
检查问题视图以获取您的项目缺少构建的提示。
Exclamation mark usually means some problem with the Build Path.
Check the Problems View for hints what your projects are missing to build.