NetBeans 17适用于需要JDK8的应用程序

huangapple go评论60阅读模式
英文:

NetBeans 17 for applications needing JDK8

问题

可以在运行在JDK11下的NetBeans 17中编写具有JDK8源代码/二进制格式的Java应用程序吗?我们有一些Java应用程序,它们是为JDK8开发的,不应该更新源代码/二进制格式。但是,我们想要将环境从NetBeans 8.2升级到更新版本。因此,我们会安装并运行使用JDK11+的NetBeans 17,但仍然使用将源代码/二进制格式设置为JDK8来编写这些应用程序。这是否可行?

英文:

Is it possible to code Java applications having JDK8 source / binary format in NetBeans 17 which runs under JDK11?

We have Java applications which were developed for JDK8 and should not be
updated with regards to Source / Binary Format.
But we would like to upgrade the environment from NetBeans 8.2 to a newer one.
So we would install and run NetBeans 17 with JDK11+ but continue coding the
apps having Source / Binary format set as JDK8.

Is that possible?

答案1

得分: 1

是的,你可以。

Netbeans 17需要JDK11才能运行。但是,你使用Netbeans开发的应用程序可以使用较旧的版本。这可以在你项目的属性中设置。

例如,看下面的Ant-based Java应用程序示例(我的Netbeans运行在JDK17上,所以你会看到更多选择):

NetBeans 17适用于需要JDK8的应用程序

英文:

Yes you can.

Netbeans 17 needs JDK11 to run. But the application you're developping with Netbeans can use an older version. This is set in the Properties of your project.

For example see below for a Ant-based Java application (my NB runs on JDK17 that's why you see more choices):

NetBeans 17适用于需要JDK8的应用程序

huangapple
  • 本文由 发表于 2023年4月20日 01:29:06
  • 转载请务必保留本文链接:https://go.coder-hub.com/76057308.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定