简体   繁体   English

Netbeans 项目无法运行

[英]Netbeans project won't run

I enrolled myself in the University of Helsinki's Java course.我报名参加了赫尔辛基大学的 Java 课程。 To follow along with this course, I had to install the NetBeans IDE and complete their exercise through this IDE.为了学习本课程,我必须安装 NetBeans IDE 并通过此 IDE 完成他们的练习。

However, when running a simple Hello World program:然而,当运行一个简单的 Hello World 程序时:

你好世界

I receive this error:我收到此错误:

错误信息

Does anyone know how to fix this error?有谁知道如何解决这个错误? If it helps, I was asked to download this as well:如果有帮助,我也被要求下载:

铁木林

And I installed NetBeans from this link: https://download.mooc.fi/tmcbeans/installers/tmcbeans_1.4.0_installer.dmg which was provided to me by the website.我从这个链接安装了 NetBeans: https://download.mooc.fi/tmcbeans/installers/tmcbeans_1.4.0_installer.dmg这是网站提供给我的。

Thank you in advance.先感谢您。

try this:尝试这个:
Right click on the Project -> Properties -> Sources -> Change the Source/Binary Format from JDK 6 to newer version.右键单击项目 -> 属性 -> 源 -> 将源/二进制格式从 JDK 6 更改为更新版本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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