FS#64081 - [arduino] The IDE doesn't start with jre-openjdk 13
Attached to Project:
Community Packages
Opened by Juan Francisco Cantero Hurtado (juanfra) - Wednesday, 09 October 2019, 21:29 GMT
Last edited by NicoHood (NicoHood) - Thursday, 13 May 2021, 09:16 GMT
Opened by Juan Francisco Cantero Hurtado (juanfra) - Wednesday, 09 October 2019, 21:29 GMT
Last edited by NicoHood (NicoHood) - Thursday, 13 May 2021, 09:16 GMT
|
Details
Description:
Yesterday jre-openjdk was updated to the version 13 and now the arduino IDE doesn't start. This is the error: Picked up JAVA_TOOL_OPTIONS: java.lang.ExceptionInInitializerError at processing.app.helpers.PreferencesMap.load(PreferencesMap.java:100) at processing.app.helpers.PreferencesMap.load(PreferencesMap.java:74) at processing.app.PreferencesData.init(PreferencesData.java:56) at processing.app.BaseNoGui.initParameters(BaseNoGui.java:835) at processing.app.Base.<init>(Base.java:213) at processing.app.Base.main(Base.java:151) Caused by: java.lang.StringIndexOutOfBoundsException: begin 0, end 3, length 2 at java.base/java.lang.String.checkBoundsBeginEnd(String.java:3720) at java.base/java.lang.String.substring(String.java:1909) at processing.app.legacy.PApplet.<clinit>(PApplet.java:38) ... 6 more I also tried removing the config dir of arduino, but it still crashes. Additional info: * jre-openjdk 13.u33-1 arduino 1:1.8.9-3 |
This task depends upon
Closed by NicoHood (NicoHood)
Thursday, 13 May 2021, 09:16 GMT
Reason for closing: Fixed
Additional comments about closing: Fixed with 1.8.14-1 by using java8
Thursday, 13 May 2021, 09:16 GMT
Reason for closing: Fixed
Additional comments about closing: Fixed with 1.8.14-1 by using java8
The version string returned is of length 2, not as expected 3.
I switched to openjdk-8 using archlinux-java as stated in "Switching between JVM" on the following site: https://wiki.archlinux.org/index.php/Java
Hope it helps.
$ sudo pacman -S jre11-openjdk
$ archlinux-java status
Available Java environments:
java-11-openjdk
java-13-openjdk (default
$ sudo archlinux-java set java-11-openjdk
Solved :-)
Thank you Maurizio!
create this script in your hone
=====================================
#!/bin/sh
export PATH=/usr/lib/jvm/java-8-openjdk/jre/bin/:$PATH
exec /usr/share/arduino/arduino "$@"
=====================================
replace that java-8-openjdk with 11 if you that one
and you can used that script to start arduino ide