New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: Cannot find Java 1.8 or higher #1787
Comments
I recommend you try the workaround explained at https://stackoverflow.com/questions/29052219/cannot-find-java-please-use-the-jdkhome-switch (gephi.conf instead of netbeans) |
I'm having the same issue as FillyJ. Here are my system specifications. I
I attempted to follow the workaround from stackoverflow, but could not locate the netbeans.config file on my system... Interestingly, I am able to run Gephi 0.9.1, but if I close the program it won't start again (the loading screen appears briefly and then disappears). At that point the only way I can get it to run is to restart the computer. I'm wondering if the issues are somehow both related to Java? Any thoughts? |
Hi, |
@FillyJ did it work? |
Hey, a classmate recommended that I try Java SE Runtime Environment 8 instead, and that is working for now. I can report back if it stops working again. |
Thank you @eduramiba! Changing the path in gephi.conf seems to have worked. |
Great! |
Folks and @eduramiba Thanks in advance, |
Remove the '#' since that makes the line a comment. |
same problem |
Does the path actually exist and point to a valid JRE/JDK? |
..sorry for my late thanks! it worked! |
Hi, Running Win 10
I think I've installed too many programs Basically, all I wanted was to see if I could visualize some text data and now it seems I won't be able to do it unless I own a PhD in IT... Should I drop it now or is there a chance that I'm able to use gephi without being a pro dev ? Thanks for attention |
@A000045 if you have 64 bit Windows, just try to install 64 bit Java 8 instead of x86 |
I was able to get it to work. So, I can verify that you have to add the line However, I had some trouble with exactly WHERE to put it. As someone very new to this, I'll describe all the steps I went through. Hopefully it will save you some trouble. First of all, when I open the gephi.conf in Notepad, the whole file is in one long line. Something like this: #${HOME} will be replaced by user home directory according to platform default_userdir="${HOME}/.${APPNAME}/0.9.2/dev" default_mac_userdir="${HOME}/Library/Application Support/${APPNAME}/0.9.2/dev" # options used by the launcher by default, can be overridden by explicit # command line switches default_options="--branding gephi -J-Xms64m -J-Xmx512m -J-Xverify:none -J-Dsun.java2d.noddraw=true -J-Dsun.awt.noerasebackground=true -J-Dnetbeans.indexing.noFileRefresh=true -J-Dplugin.manager.check.interval=EVERY_DAY" # for development purposes you may wish to append: -J-Dnetbeans.logger.console=true -J-ea # default location of JDK/JRE, can be overridden by using --jdkhome switch jdkhome="\path\here" # clusters' paths separated by path.separator (semicolon on Windows, colon on Unices) #extra_clusters=Without the correct format, it's not clear when a comment ends or begins. So I decided to add the reference to java at the beginning. Like this: jdkhome="C:/Program Files (x86)/Java/jre1.8.0_151" # ${HOME} will be replaced by user home directory according to platform default_userdir="${HOME}/.${APPNAME}/0.9.2/dev" default_mac_userdir="${HOME}/Library/Application Support/${APPNAME}/0.9.2/dev" blahh..... And then I tried to open gephi again. And I got the message that they could not find the java file in "C:/Program Files (x86)/Java/jre1.8.0_151" # ${HOME} Which means that somehow this ${HOME} was not commented out correctly. jdkhome="C:/Program Files (x86)/Java/jre1.8.0_151" Then everything worked perfectly... |
update the path here |
Hi guys, is there other reason for Gephi to stuck in the "starting modules" step? Gephi version: 0.9.2 x64 |
I've just experienced the same problem with Gephi not finding Java 1.8 or higher (although I have no idea what caused this as v0.9.1 was working fine last week and the problem didn't resolve when I updated to 0.9.2). But I can confirm pooja7b's solution works. I did have to double-check the relevant filename in the Java folder though, so instead of: |
Hi guys, i got the same problem, but found another, very simple solution: |
@JonasLohmueller That usually means your OS is 64 bit but your java installation is not. |
Installing Java SE Runtime Environment 8 at http://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html That Java error disappeared! Awesome! |
@giugnomt fix worked for me too. Way simpler than noodling with config files. |
What I found was my laptop had restricted the write to file permissions for
Gephi. Once I reloaded my OS from scratch, the permissions cleared up and I
could use the program.
…On Wed, Sep 26, 2018 at 12:52 PM Andres Varela ***@***.***> wrote:
@giugnomt <https://github.com/giugnomt> fix worked for me too. Way
simpler than noodling with config files.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1787 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AmCb5o2KkoeiCgibC74nCpsOZSN1qE-Cks5ue7DlgaJpZM4PjStP>
.
--
Matt Mattingly
|
I had to install the 64bit version to work. |
I had a lot of issues but all were resolved. Somehow Gephi had gotten write
restricted and couldn't write files to my drive, but once I reformatted my
drives it resolved itself.
…On Wed, Dec 12, 2018 at 9:36 AM wsamaral ***@***.***> wrote:
I had to install the 64bit version to work.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1787 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AmCb5viWKR5F-uRISYm4vLP5QE14NQ3wks5u4RRngaJpZM4PjStP>
.
--
Matt Mattingly
|
add the following java path in gephi.conf works for me.
gephi.conf is located at C:\Program Files\Gephi-0.9.2\etc\gephi.conf
|
I modified the file "C:/Program Files/Gephi-0.9.2/etc/gephi.conf" #jdkhome="/path/to/jdk" and it works! |
it is working correctly, thanks for your advice |
go to the folder: ** \Gephi-0.9.2\bin** ,click to the Gephi.exe instead of Gephi64.exe, which works for me. |
Did this without the "#" comment marker, but replaced the "/" with "\". It worked on Windows 10. |
Works perfectly on Windows 10, thanks. |
This works for me. After I added below line, Gephi can start.
|
Has anyone solved this on a Mac? MacOS Catalina 10.15 specifically... Thanks in advance |
This was my solution:
My Java shortcut was being addressed to a java.exe at As all of you was ponting to /Program Files (x86)/Java/ , Thanks and wishes of a glorious and happy new year! |
I'm on Windows 10 64 bit and finally had success running Gephi after installing 64 bit Java from https://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html as suggested above. Before this, modifying my .conf did not work. |
This should be a null issue. 0.9.0 started including the Java environment so separate installation wasn't necessary; 0.9.1 works fine as well without pre-installing Java. The issue started in 0.9.2. Installing Java is a solution for the current version, but unless the code was purposefully changed to no longer include Java this is an error in the update, not a user error or problem. Just use 0.9.1 if you can and it will work without installing Java separately. Also, this error is now listed in a few separate different reports; we need to merge these or remove some. |
I found a pretty useful video to solve this issue: Hope it helps |
solution for Windows gephi is a 64-bit program, so it needs 64-bit java. The default java installation cofigures the java x86 ( java 32-bit). after the installation, one will have two javas, one at C:\Program Files (x86)\Java\jre_$version and another at C:\Program Files\Java\jre_$version. once installed, edit the gehpi.conf file (C:\Program Files\Gephi-0.9.2\etc\gephi.conf) adding the path to java64, (C:\Program Files\Java\jre$version) on the correspondent line (#jdkhome=). now you can run gephi! (SOLVED) |
Just downloaded java 64-bit, and installed, and the gephi opened. Didn't need to do anything else. Thanks |
open "C:/Program Files/Gephi-0.9.2/etc/gephi.conf" |
this tutorial helped me to solve the problem: |
Thanks, it really worked after change the location in conf! |
Since Gephi (0.9.3) Java is embedded into Gephi so there should not be any problem with Java anymore. You don't need to install Java separately. |
You just need to install 64 bit Windows offline from Java official site and that should solve the problem. The default Gephi could be running on a 32 bit which is why it is throwing an error. Works on mine. |
EDIT: Since Gephi (0.9.3) Java is embedded into Gephi so there should not be any problem with Java anymore. You don't need to install Java separately.
Installed Gephi - 0.9.2 and the latest version of Java, the Java 8 - update 144. I still can't launch Gephi and it prompts an error message every time I try to do so.
Any help?
The text was updated successfully, but these errors were encountered: