gpt4 book ai didi

java - 新安装的Geogebra打不开(可能是JDK问题)

转载 作者:行者123 更新时间:2023-12-01 08:46:15 24 4
gpt4 key购买 nike

刚刚在我的 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 应该作为命令提供(取决于您的操作系统),但是在安装 JDK 8 后,您可以运行它并选择它将 Java 8 设置为 Java 版本为您的系统。

或者您可以自己编辑 PATHJAVA_HOME ,但当有更简单/更安全的方法时我不会推荐它。

关于java - 新安装的Geogebra打不开(可能是JDK问题),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43027487/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com