[英]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. 使用内部预定义的配置,甚至无法加载默认布局 Could somebody give me adive for this issue?有人可以给我这个问题吗?
My computer sepecification is as follows.我的电脑规格如下。
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 我不记得,那不是我的电脑)上测试:
JAVA_HOME=C:\Program Files\Java\jre_1.8\bin
(The real path might defer) (实际路径可能会延迟)
\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.