-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Update Java Version #1056
Update Java Version #1056
Conversation
Got this error using Java 14 Exception in thread "main" java.lang.UnsupportedClassVersionError: me/drton/jmavsim/Simulator has been compiled by a more recent version of the Java Runtime (class file version 59.0), this version of the Java Runtime only recognizes class file versions up to 58.0
Thanks @cdennison. I've tidied up your suggested "things that need to be fixed".
I'll do some testing. |
@julianoes Do you use MacOS and can you test this? As a test point Ubuntu 20.04 uses Java 14. I just tested against latest PX4 in my VM. It works, though I do get some (different) warnings:
|
To use SITL simulation with jMAVSim you need to install the most recent version of Java (e.g. Java 15). | ||
You can either download [Java 15 from Oracle](https://www.oracle.com/java/technologies/javase-downloads.html) or use the AdoptOpenJDK tap: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As @hamishwillee says, whatever comes with Ubuntu 20.04 (which is what we're trying to support) should be fine.
|
||
```sh | ||
brew tap AdoptOpenJDK/openjdk | ||
brew install --cask adoptopenjdk14 | ||
brew install --cask adoptopenjdk15 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is fine.
@cdennison have you tried rebuilding it properly after doing |
My take is that we don't change the docs because this should work for either Java and there is no point doing so unless we understand the cause of the actual problem. Any more debugging we might do @julianoes ? |
fixed by #1095 |
Got this error using Java 14 so updating docs to Java 15 which worked for me.
Looks like this needs updating in the following areas - I'm happy to update the PR but I cannot test all those envs.