Ecos-platform / FMU4j

Framework for exporting JVM code to co-simulation FMUs compatible with FMI 2.0.
MIT License
4 stars 2 forks source link

FMU-Builder: java.lang.ClassNotFoundException: no.ntnu.ais.fmu4j.export.fmi2.Fmi2Slave when generating FMU #6

Closed hannesN closed 1 year ago

hannesN commented 2 years ago

I try to create an FMU after building a fat jar with maven. Sadly, I get a ClassNotFoundException.

Oddly, the build creates a fmu-builder-app just containing a Manifest file. Is this correct?

Thanks Hannes

markaren commented 2 years ago

On phone, but I think you are looking for fmu-builder directory, not the one with app in it.

markaren commented 2 years ago

Disregard previous comment. Like the README states, call ./gradlew installDist and the executable (not JAR) is located in fmu-builder-app/build/install