我已经安装了 Arduino。当我从终端运行它时,它会显示以下消息:
A fatal error has been detected by the Java Runtime Environment:
# SIGSEGV (0xb) at pc=0x00007f02d79d9009, pid=28430, tid=28458
# JRE version: OpenJDK Runtime Environment (9.0) (build 9-internal+0-2016-04-14-195246.buildd.src)
# Java VM: OpenJDK 64-Bit Server VM (9-internal+0-2016-04-14-195246.buildd.src, mixed mode, tiered, compressed oops, g1 gc, linux-amd64)
# Problematic frame:
# C [libjava.so+0x1d009] JNU_GetEnv+0x19
#
# Core dump will be written. Default location: Core dumps may be processed with "/usr/share/apport/apport %p %s %c %P" (or dumping to /home/shauqi/core.28430)
#
# An error report file with more information is saved as:
# /home/shauqi/hs_err_pid28430.log
#
# If you would like to submit a bug report, please visit:
# http://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#
/usr/bin/arduino: line 14: 28430 Aborted (core dumped) java -jar /usr/share/arduino/arduinopc.jar
No required groups are missing for this user.
Exception in thread "main" java.lang.ExceptionInInitializerError
at processing.app.Preferences.save(Preferences.java:735)
at processing.app.Preferences.init(Preferences.java:249)
at processing.app.Base.main(Base.java:117)
Caused by: java.lang.NumberFormatException: For input string: "9-i"
at jdk.internal.math.FloatingDecimal.readJavaFormatString(java.base@9-internal/FloatingDecimal.java:2054)
at jdk.internal.math.FloatingDecimal.parseFloat(java.base@9-internal/FloatingDecimal.java:122)
at java.lang.Float.parseFloat(java.base@9-internal/Float.java:451)
at java.lang.Float.<init>(java.base@9-internal/Float.java:532)
at processing.core.PApplet.<clinit>(Unknown Source)
... 3 more
我正在运行 ubuntu 16.04.1。
我的Java信息:
openjdk version "9-internal"
OpenJDK Runtime Environment (build 9-internal+0-2016-04-14-195246.buildd.src)
OpenJDK 64-Bit Server VM (build 9-internal+0-2016-04-14-195246.buildd.src, mixed mode)
答案1
同样的问题列出错误 但没有可用的解决方案并且已经“发布修复程序”。
Arduino 期望数字“9”,而不是“9-internal”。我建议使用另一个使用数字编号的 JDK。但问题出在 Arduino 的 JDK 版本号检查中。