How to run Wildfly 14 with java 11?

2020-02-05 04:39发布

I'm using Wildfly 14 and Java 11 in its runtime configuration. When I start the server I get

org.jboss.modules.ModuleNotFoundException: java.se
    at org.jboss.modules.Module.addPaths(Module.java:1266)
    at org.jboss.modules.Module.link(Module.java:1622)
    at org.jboss.modules.Module.relinkIfNecessary(Module.java:1650)
    at org.jboss.modules.ModuleLoader.loadModule(ModuleLoader.java:296)
    at org.jboss.modules.Main.main(Main.java:437)

How do I run Wildfly 14 with java 11?

1条回答
Fickle 薄情
2楼-- · 2020-02-05 04:57

There was some change in Java 11 where java.se must be read on the module path. In Wildfly's run configuration under VM arguments add

--add-modules=java.se

Should be fixed in later versions.

查看更多
登录 后发表回答