IDE crashes immediately if OpenJDK 9 is installed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
arduino (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
The Arduino IDE 2:1.0.5 crashes on Ubuntu 16.04 with Java OpenJDK 9.
If OpenJDK 8 is used (may be selected by update-
The reason is easily spotted: The IDE crashes on the attempt to parse part of the Java version string into a number. While OpenJDK 8 delivers a Version string consisting of numbers on the first part the IDE seem to parse, OpenJDK 9's version string is sliced to gain '9-i' by the IDE, which can't be converted to a float number and hence crash.
Relying on a version string seems to be a messy thing either...
How to reproduce:
-Install packages arduino and any openjdk-9-jre-* package.
-Check by 'sudo update-alternatives --config java' that OpenJDK 9 is in fact used to provide 'java'.
-Start arduino from terminal. It crashes, the exception is directly visible in the terminal output.
It also crashes on startup on groovy