Eclipse Glassfish/Payara无法识别我的JDK [英] Eclipse Glassfish/Payara does not recognize my JDK

查看:77
本文介绍了Eclipse Glassfish/Payara无法识别我的JDK的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用Glassfish在Eclipse中创建新服务器,但是当我尝试指定JDK的路径时,Eclipse将无法识别它.我也遇到与Payara相同的错误.我当前正在运行Antergos Linux.请参见下面的图片,以了解错误示例.

I am trying to create a new server in Eclipse using Glassfish but when I try to specify the path to my JDK Eclipse wont recognize it. I am getting the same error with Payara as well. I am currently running Antergos Linux. See the image under for example of the error.

Eclipse中的错误消息:

Error message in Eclipse:

任何想法是什么原因造成的?我不知道要在这里发布什么信息,因此请索取您想知道的内容.

Any ideas what is causing this? I dont know what information to publish here so please request if there is something you want to know.

推荐答案

GlassFish 5和Payara Server均未与JPMS(Java 9中引入)一起使用.

Neither GlassFish 5 nor Payara Server work with JPMS (introduced in Java 9) yet.

从支持生命周期可以看出,Payara当前的目标是与Java 11兼容: https://www.payara.fish/support_lifecycle

The current target is for Payara to be compatible with Java 11, as seen on the support lifecycle: https://www.payara.fish/support_lifecycle

这意味着可能是Payara的5.184版本首次(正式)支持JPMS.

What this means is that it will probably be the 5.184 version of Payara that will be the first to (officially) support JPMS.

目前的解决方案是继续使用Java 8,该Java至少应在2019年1月之前可用.

The solution for now is to continue to use Java 8, which should be available at least until January 2019.

这篇关于Eclipse Glassfish/Payara无法识别我的JDK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆