Public bug reported:
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-alternatives, if
installed) it runs fine.
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.
** Affects: arduino (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1651888
Title:
IDE crashes immediately if OpenJDK 9 is installed
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/arduino/+bug/1651888/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs