Ecos-platform / fmu4j_template

Starter template for building FMUs using FMU4j
0 stars 1 forks source link

Missing jvm.dll #4

Open flochocinco opened 1 year ago

flochocinco commented 1 year ago

Hello,

After running the FMU-Checker with generated FMU. I got the following error: 0010:err:module:import_dll Library jvm.dll

My version of java is:

Java(TM) SE Runtime Environment (build 1.8.0_131-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)
markaren commented 1 year ago

It has been a while since working on this, but do you have jvm.dll on PATH ?

flochocinco commented 1 year ago

It's not on PATH. I changed the variable JAVA_HOME of gradlew.bat to target the jdk I want.

Should I see this dll into the generated FMU ?

markaren commented 1 year ago

The FMU links to the Java JDK, which needs to be on Path (jvm.dll) or somehow visible to the running application. It is not provided by the FMU. Newer versions than JDK 11 has not been tested.