Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows built FMUs throws ClassNotFoundException on Linux #5

Open
msteinsto opened this issue Apr 13, 2023 · 0 comments
Open

Windows built FMUs throws ClassNotFoundException on Linux #5

msteinsto opened this issue Apr 13, 2023 · 0 comments

Comments

@msteinsto
Copy link

There seems to be a bug when trying to run models built on Windows on Linux. A FMU generated from building and then running the example JavaSlave.fmu from an umodified cloned repo on Windows gives a model that runs as expected on Windows but throws the exception:

java.lang.ClassNotFoundException: example.JavaSlave

When run on Linux. Windows and Linux system is configured to use Correto JDK 8.

Strangely models built in wsl Ubuntu 20.04 will run on both Windows and Linux.

Inspecting the generated jar-file and FMU file content reveals that the example folder is present and contains JavaSlave.class and that both the Windows and Linux generated FMUs have exactly the same file size and no obvious differences in content.

This could be a local setup issue but I have verified that the correct Java version is being used while building and that environment variables are set according to README instructions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant