[rtlauncher:main$] ERROR Unknown Java version format: 11

0
I am trying to setup runtime env on windows server 2016,  but I got following errors,  Mendix version: 8.7.0.1476 JDK 11 The server failed to start. Mendix Runtime launcher failed to start. [rtlauncher:main$] ERROR Unknown Java version format: 11 java.lang.RuntimeException: Unknown Java version format: 11     at com.mendix.container.util.JdkVersion$.majorVersion(JdkVersion.scala:20)     at com.mendix.container.util.JdkVersion$.isCompatibleJdk(JdkVersion.scala:7)     at com.mendix.container.boot.Container$.verifyJdkCompatibility(Container.scala:139)     at com.mendix.container.boot.Container$.$anonfun$startAndWaitForever$1(Container.scala:124)     at com.mendix.container.boot.Container$.time(Container.scala:214)     at com.mendix.container.boot.Container$.startAndWaitForever(Container.scala:124)     at com.mendix.container.boot.Main$.$anonfun$new$1(Main.scala:11)     at scala.util.Either.flatMap(Either.scala:341)     at com.mendix.container.config.ProjectConfig$.run(ProjectConfig.scala:61)     at com.mendix.container.boot.Main$.delayedEndpoint$com$mendix$container$boot$Main$1(Main.scala:11)     at com.mendix.container.boot.Main$delayedInit$body.apply(Main.scala:9)     at scala.Function0.apply$mcV$sp(Function0.scala:39)     at scala.Function0.apply$mcV$sp$(Function0.scala:39)     at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:17)     at scala.App.$anonfun$main$1$adapted(App.scala:80)     at scala.collection.immutable.List.foreach(List.scala:392)     at scala.App.main(App.scala:80)     at scala.App.main$(App.scala:78)     at com.mendix.container.boot.Main$.main(Main.scala:9)     at com.mendix.container.boot.Main.main(Main.scala)    at Mendix.M2EE.RuntimeRunner.StartServer(Boolean strictValidate)    at Mendix.MendixService.Service.OnStart(String[] args)
asked
1 answers
1

Let me answer it by myself, at the beginning, I used Open JDK, which I download from Web Site, it popped up error message. 

JDK doesn’t work
openjdk version "11" 2018-09-25
OpenJDK Runtime Environment 18.9 (build 11+28)
OpenJDK 64-Bit Server VM 18.9 (build 11+28, mixed mode)

 

I switched to the JDK that Mendix Studio Pro uses, it worked

openjdk version "11.0.3" 2019-04-16
OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.3+7)
OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.3+7, mixed mode)

answered