带有 GlassFish 5.192.0 的 Payara 无法开始使用 Intellij Idea。
如果我运行 payara\bin\asadmin start-domain 工作正常,并且服务器启动并运行。
这些是控制台输出的最后几行,其中 --verbose 属性设置为 true。
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Unrecognized option: --add-opens=jdk.management/com.sun.management.internal=ALL-UNNAMED
Command start-domain failed.
The DAS was stopped.
最佳答案
问题的根源是logged here .
Windows 启动器在 PATH
前面加上 JetBrains Runtime bin
目录,以便加载某些 DLL 而不会出现问题。事实证明这不是最好的解决方案,我们正在努力以不同的方式解决这个问题。
asadmin.bat
使用 PATH
中的第一个 java.exe
。它不会尝试通过 JAVA_HOME
检测它。
目前的解决方法是将 IntelliJ IDEA 启动 JDK 按 this document 切换为 JBR8或使用 idea.bat
而不是 idea64.exe
启动 IntelliJ IDEA。
此问题已在 2019.2.1 RC 中修复.
关于intellij-idea - Payara 不是从 Intellij 启动的,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57580027/