新安装的 Geogebra 打不开(大概 JDK 问题)
Newly installed Geogebra doesn't open (persumably JDK issue)
刚刚在我的 Ubuntu 16.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)
谁能帮我解决这个问题?
Java 9 尚未正式发布,所以我非常怀疑是否有任何主要的 Java 应用程序正在使用它。我不知道你是怎么得到那个设置的,但我建议你安装 JDK 8 而不是
update-java-alternatives
应该可以作为命令使用(取决于您的 OS),但是在安装 JDK 8 之后,您可以 运行 和 select 它将 Java 8 设置为您系统的 Java 版本。
或者您可以自己编辑 PATH
和 JAVA_HOME
,但如果有更简单/更安全的方法,我不推荐这样做。
刚刚在我的 Ubuntu 16.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)
谁能帮我解决这个问题?
Java 9 尚未正式发布,所以我非常怀疑是否有任何主要的 Java 应用程序正在使用它。我不知道你是怎么得到那个设置的,但我建议你安装 JDK 8 而不是
update-java-alternatives
应该可以作为命令使用(取决于您的 OS),但是在安装 JDK 8 之后,您可以 运行 和 select 它将 Java 8 设置为您系统的 Java 版本。
或者您可以自己编辑 PATH
和 JAVA_HOME
,但如果有更简单/更安全的方法,我不推荐这样做。