刚才在我的Ubuntu16.04上安装了geogebra (带有普通的旧sudo apt-get install geogebra)
当我试图打开它时,我得到:
GeoGebra 4.0.34.0 (Debian version 4.0.34.0+dfsg1-3) 22 June 2012 Java 9-internal
*** Message from [geogebra.main.Application.setUpLogging]
/tmp/GeoGebraLog_hltazoiolj.txt
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007f9a380b8009, pid=25913, tid=25915
#
# 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 /mnt/storage/programs/linux/installers/core.25913)
#
# An error report file with more information is saved as:
# /mnt/storage/programs/linux/installers/hs_err_pid25913.log
[thread 25945 also had an error]
#
# 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.
#
Aborted (core dumped)我想这与我的JDK有关,但我不知道该怎么做。我的java -version输出:
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)有人能帮我解决这个问题吗?
发布于 2017-03-26 14:40:12
Java 9还没有正式发布,所以我非常怀疑任何主流的Java应用程序都在使用它。我不知道您是如何安装的,但我建议您安装JDK 8。
update-java-alternatives应该可以作为命令使用(取决于您的操作系统),但是在您安装JDK 8之后,您可以运行它并选择它将Java8设置为您的系统的Java版本。
或者您可以自己编辑PATH和JAVA_HOME,但是当有更简单/更安全的方法时,我不会推荐它。
https://stackoverflow.com/questions/43027487
复制相似问题