简体   繁体   English

如何解决 Gephi 错误:甚至无法加载默认布局(安装步骤)

[英]How to solve Gephi error : cannot load even default layout (Installation step)

I would like to ask about the gephi since the gephi program does not work.我想问一下gephi,因为gephi程序不起作用。 I have downloaded version 0.9.2 of Geph and Java JDK-16.0.1.我已经下载了 Geph 0.9.2 版本和 Java JDK-16.0.1。

If I run Gephi after downloading it, it starts program however soon after error messages pop up.如果我在下载后运行 Gephi,它会在弹出错误消息后很快启动程序。

1. cannot load even default layout, using internally predefined configuration 1. 使用内部预定义的配置,甚至无法加载默认布局
2. cannot load window system persistant data, user directory content is broken.Resetting to default. 2.无法加载window系统持久化数据,用户目录内容损坏。恢复默认。

I followed all the instruction which are in the tutorial page(https://gephi.org/users/install/) However I still got same errors. 我按照教程页面中的所有说明(https://gephi.org/users/install/)但是我仍然遇到同样的错误。 And once I deleted user directory, it appear again. 一旦我删除了用户目录,它就会再次出现。

Could somebody give me adive for this issue?有人可以给我这个问题吗?

My computer sepecification is as follows.我的电脑规格如下。

  1. Microsoft surface pro3微软 Surface Pro3
  2. Windows 10 64bits Windows 10 64位
  3. Intel(R) HD Graphics Family英特尔(R) 高清显卡系列

在此处输入图像描述 在此处输入图像描述

Download and install Java 8 or 9. then add path in configuration file and save.下载并安装 Java 8 或 9。然后在配置文件中添加路径并保存。 run again..........再次运行..........

I think it's a Java version mismatch between the Java your computer uses, and the Java your Gephi uses.我认为这是您的计算机使用的 Java 与您的 Gephi 使用的 Java 之间的 Java 版本不匹配。

Tested on Windows 10 (or 8 I don't remember, that was not my computer):在 Windows 10(或 8 我不记得,那不是我的电脑)上测试:

  1. Download Java JRE 1.8 (I guess it also work with >1.8)下载 Java JRE 1.8(我猜它也适用于 >1.8)
  2. Set your JAVA_HOME environment variable such as:设置您的 JAVA_HOME 环境变量,例如:

JAVA_HOME=C:\Program Files\Java\jre_1.8\bin

(The real path might defer) (实际路径可能会延迟)

  1. Gephi will not recognize java, because widnows needs the trailing \bin while Gephi does not. Gephi 将无法识别 java,因为 widnows 需要尾随\bin而 Gephi 不需要。 Go to yout Gephi configuration: Go 到你的 Gephi 配置:

C:\Program Files\Gephi\etc\gephi.conf (once again, I do not remember the exact path, not my pc) C:\Program Files\Gephi\etc\gephi.conf (再一次,我不记得确切的路径,不是我的电脑)

Inside the file, there is a line:在文件里面,有一行:

#jdkhome="/path/to/jdk"

Replace it by:将其替换为:

jdkhome="C:\Program Files\Java\jre_1.8"

Yes, I removed the # (that symbols tells Gephi to ignore the line).是的,我删除了 # (该符号告诉 Gephi 忽略该行)。 Yes, it is written "jdkhome" but as strange as it seems it will not work unless you write the jre path instead (as i did).是的,它被写成“jdkhome”,但它看起来很奇怪,除非你改写 jre 路径(就像我一样)。 Note that the path is the same that the one set as your JAVA_HOME, but with the trailing \bin removed.请注意,该路径与设置为您的 JAVA_HOME 的路径相同,但删除了结尾的\bin

That should work.那应该行得通。

As said above, it's a Java version mismatch between the Java your computer uses, and the Java your Gephi uses.如上所述,这是您计算机使用的 Java 与您 Gephi 使用的 Java 之间的 Java 版本不匹配。 When I use JDK-17.xx, it comes up with the same question.当我使用 JDK-17.xx 时,它提出了同样的问题。 Solve this problem by degrade to jdk-11.0.14.通过降级到 jdk-11.0.14 来解决这个问题。 It may need your oracle account to download the previous releases.它可能需要您的 oracle 帐户来下载以前的版本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM