IDE crashes immediately if OpenJDK 9 is installed

Bug #1651888 reported by dronus
10
This bug affects 2 people
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-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.

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

It also crashes on startup on groovy

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in arduino (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.