为什么我的项目包上有一个感叹号?

发布于 2024-12-15 08:54:27 字数 317 浏览 4 评论 0原文

我的项目包旁边有一个感叹号!并且它无法正常运行!

该项目是在另一台计算机(我同学的)上创建的。当我尝试运行它时,我得到: 线程“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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

蓬勃野心 2024-12-22 08:54:27

感叹号通常表示构建路径存在问题。
检查问题视图以获取您的项目缺少构建的提示。

Exclamation mark usually means some problem with the Build Path.
Check the Problems View for hints what your projects are missing to build.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文