java新安装的Geogebra未打开(可能是JDK问题)
刚刚在我的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)
有人能帮我解决这个问题吗
# 1 楼答案
Java 9尚未正式发布,所以我高度怀疑是否有任何主要的Java应用程序正在使用它。我不知道你是怎么安装的,但我建议你改为安装JDK 8
update-java-alternatives
应该可以作为命令使用(取决于您的操作系统),但在安装JDK 8后,您可以运行该命令并选择它,将Java 8设置为系统的Java版本或者你可以自己编辑
PATH
和JAVA_HOME
,但如果有更简单/更安全的方法,我不推荐你这么做