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

Which Eclipse Version is 0.7 compatible with? #222

Open
lanpirot opened this issue Aug 9, 2022 · 1 comment
Open

Which Eclipse Version is 0.7 compatible with? #222

lanpirot opened this issue Aug 9, 2022 · 1 comment

Comments

@lanpirot
Copy link

lanpirot commented Aug 9, 2022

I tried installing all kinds of versions of Eclipse (also Java and Matlab), but somehow this error always crept in, when trying the Command Evaluation Server (the Matlab Control works):

modelExporter.createSimulinkModel('...','...')
Creating controller..
Controller created
Creating Local Script Evaluator
Local Script Evaluator Created
Importing model: ...\massif\massif-cli\Example_MATLAB.slx
Java exception occurred:
java.lang.UnsupportedClassVersionError: org/eclipse/core/runtime/IStatus has been compiled by a more recent version of the Java Runtime (class file
version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at com.mathworks.jmi.CustomURLClassLoader.findClass(ClassLoaderManager.java:760)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at hu.bme.mit.massif.simulink.cli.CLIEMFCreator.createSimulinkModel(CLIEMFCreator.java:58)
at hu.bme.mit.massif.simulink.cli.CLIEMFCreator.createSimulinkModel(CLIEMFCreator.java:79)

This happens on my system with
Eclipse: Photon (4.8)
Java: 1.8
Matlab: R2018b
Viatra: 2.0
Massif: 0.7

@abelhegedus
Copy link
Member

java.lang.UnsupportedClassVersionError: org/eclipse/core/runtime/IStatus has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0

This is not (directly) a Massif problem, it means you are running an Eclipse Platform with minimum Java 11 requirement (class file version 55.0) over Java 8 (class file version 52.0).

Based on the stacktrace, you are running Matlab CLI version, in Matlab R2018b. See https://www.mathworks.com/help/compiler_sdk/java/configure-your-java-environment.html for checking the Java version found by Matlab.

Did you use the release versions or built a new CLI package from source?

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

2 participants