简体   繁体   English

Apache Netbeans 12.0 带 jdk 12

[英]Apache Netbeans 12.0 with jdk 12

I need to run Apache NetBeans 12.0 with JDK 12. But there is this error:我需要使用 JDK 12 运行 Apache NetBeans 12.0。但是有这个错误:

Glass Fish Server could not be started with jdk 12. Please select another SE platform Glass Fish Server 无法使用 jdk 12 启动。请 select 另一个 SE 平台

How to resolve this error?如何解决此错误?

go to Tools>>>Servers>>>Add server>> choose glassfish>> browse where you just download the glassfish and install. go 到工具>>>服务器>>>添加服务器>>选择 glassfish>> 浏览您刚刚下载 glassfish 并安装的位置。

in case it still doesn't work for you.以防它仍然不适合你。 I suggest that you download another version of JDK.我建议你下载另一个版本的 JDK。

You are probably trying to run a version of Glassfish that doesn't support Java 11 and later.您可能正在尝试运行不支持 Java 11 及更高版本的 Glassfish 版本。 According the sources I found, Glassfish 6.1.0 or later is needed for Java 11, and Glassfish 6.2.0 or later is needed for Java 17.根据我找到的消息来源,Java 11 需要 Glassfish 6.1.0 或更高版本,Java 17 需要 Glassfish 6.2.0 或更高版本。

I suspect (but don't know.) that Glassfish 6.1.0 will work with Java 12, (Changes in Java 16 finally closed off access to most of the Java private / internal APIs. and that could well be what necessitated the Glassfish 6.2.0 releases. I suspect (but don't know.) that Glassfish 6.1.0 will work with Java 12, (Changes in Java 16 finally closed off access to most of the Java private / internal APIs. and that could well be what necessitated the Glassfish 6.2 .0 版本。

However...然而...

Java 12 is end-of-life. Java 12 已报废。 It was end-of-life as soon as Java 13 was released. Java 13 发布后,它的生命周期就结束了。 That was in September 2019.那是在 2019 年 9 月。

So my advice would be to either upgrade to Java 17 (LTS) or downgrade to Java 11 (LTS)... and use compatible versions of NetBeans and Glassfish.所以我的建议是升级到 Java 17 (LTS) 或降级到 Java 11 (LTS) ......并使用兼容版本的 Z69F0F6923BC1F8AAA26B96BC82AFDB88 和 Glass。

NetBeans 12.6 is advisable for Java 17 support.对于 Java 17 支持,建议使用 NetBeans 12.6。 (The feature list says that NetBeans 12.5 has "experimental support" for Java 17.) (功能列表显示 NetBeans 12.5 对 Java 17 具有“实验性支持”。)


How to resolve this error?如何解决此错误?

Make sure that you are using compatible versions of Java, Netbeans and Glassfish.确保您使用的是兼容版本的 Java、Netbeans 和 Glassfish。

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

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