Skip to content
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

Closed
FillyJ opened this issue Sep 25, 2017 · 62 comments
Assignees
Labels

Comments

@FillyJ
Copy link

@FillyJ FillyJ commented Sep 25, 2017

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.

  • Version used: Gephi 0.9.2
  • Java version: 8
  • Operating System: Windows 10 - Home, 1703

Any help?

@eduramiba

This comment has been minimized.

Copy link
Member

@eduramiba eduramiba commented Sep 25, 2017

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)

@eduramiba eduramiba self-assigned this Sep 25, 2017
@schignel

This comment has been minimized.

Copy link

@schignel schignel commented Sep 26, 2017

I'm having the same issue as FillyJ. Here are my system specifications. I

Version used: Gephi 0.9.2
Java version: 8 Update 73
Operating System: Windows 7 - Professional

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?

@eduramiba

This comment has been minimized.

Copy link
Member

@eduramiba eduramiba commented Sep 26, 2017

Hi,
You should look for gephi.conf instead of netbeans.conf

@eduramiba

This comment has been minimized.

Copy link
Member

@eduramiba eduramiba commented Sep 26, 2017

@FillyJ did it work?

@FillyJ

This comment has been minimized.

Copy link
Author

@FillyJ FillyJ commented Sep 26, 2017

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.

@schignel

This comment has been minimized.

Copy link

@schignel schignel commented Sep 26, 2017

Thank you @eduramiba! Changing the path in gephi.conf seems to have worked.

@eduramiba

This comment has been minimized.

Copy link
Member

@eduramiba eduramiba commented Sep 26, 2017

Great!

@eduramiba eduramiba closed this Sep 26, 2017
@m2d511

This comment has been minimized.

Copy link

@m2d511 m2d511 commented Sep 26, 2017

Folks and @eduramiba
Could you please tell me how this line of code should look in gephi.conf?
#jdkhome="C:/Program Files (x86)/Java/jre1.8.0_131" nothing seems to work here.

Thanks in advance,

@eduramiba

This comment has been minimized.

Copy link
Member

@eduramiba eduramiba commented Sep 26, 2017

Remove the '#' since that makes the line a comment.

@m2d511

This comment has been minimized.

Copy link

@m2d511 m2d511 commented Sep 26, 2017

same problem

@eduramiba

This comment has been minimized.

Copy link
Member

@eduramiba eduramiba commented Sep 26, 2017

Does the path actually exist and point to a valid JRE/JDK?

@schignel

This comment has been minimized.

Copy link

@schignel schignel commented Sep 26, 2017

If it's helpful, here's what mine looks like:
image

@m2d511

This comment has been minimized.

Copy link

@m2d511 m2d511 commented Sep 27, 2017

..sorry for my late thanks! it worked!

@A000045

This comment has been minimized.

Copy link

@A000045 A000045 commented Oct 22, 2017

Hi,
Just updated to gephi 0.9.2 => I get the "Cannot find Java 1.8 or higher" message.
I really don't understand the workaround here, could someone help please ?

Running Win 10
I don't really understand the purpose of the JRE or JDK, but apparently I have three different bersions of JRE installations (Java/about/Desktop Settings) :

  • jre-9.0.1 (amd64)
  • jre-9 (amd64)
  • jre1.8.0_144 (x86)

I think I've installed too many programs
(but Gephi was working earlier today anyway, just before the update...)
Also I just tried to install JDK following a tuto but I can't find it anywhere...

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

@eduramiba

This comment has been minimized.

Copy link
Member

@eduramiba eduramiba commented Oct 22, 2017

@A000045 if you have 64 bit Windows, just try to install 64 bit Java 8 instead of x86

@eduramiba eduramiba referenced this issue Oct 25, 2017
@boa1540

This comment has been minimized.

Copy link

@boa1540 boa1540 commented Oct 27, 2017

I was able to get it to work. So, I can verify that you have to add the line
jdkhome="C:/Program Files (x86)/Java/jre1.8.0_151"
to the gephi.conf file in C:\Program Files\Gephi-0.9.2\etc

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.
When I added the correct spacing:

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.....

Then everything worked perfectly...

@pooja7b

This comment has been minimized.

Copy link

@pooja7b pooja7b commented Oct 29, 2017

update the path here
#jdkhome="\path\here"
to
jdkhome="C:\Program Files (x86)\Java\jre1.8.0_151"
note that you should remove the '#' symbol.
The above comments were really helpful. I was able to get mine working.

This was referenced Oct 31, 2017
@xiangchen-ee

This comment has been minimized.

Copy link

@xiangchen-ee xiangchen-ee commented Nov 13, 2017

Hi guys, is there other reason for Gephi to stuck in the "starting modules" step?
I have changed the jdkhome but it doesn't work.

Gephi version: 0.9.2 x64
Java version: jre-8u151-windows-x64
jdkhome="C:\Program Files\Java\jre1.8.0_151"
OS: Windows 7 Professional SP1 x64

@wilchivs

This comment has been minimized.

Copy link

@wilchivs wilchivs commented Nov 13, 2017

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:
jdkhome="C:/Program Files/Java/jre1.8.0_151"
I had to input:
jdkhome="C:/Program Files/Java/jre1.8.0_131"

@JonLohm

This comment has been minimized.

Copy link

@JonLohm JonLohm commented Nov 14, 2017

Hi guys,

i got the same problem, but found another, very simple solution:
I just use "gephi.exe" in my ...\Gephi-0.9.2\bin folder instead of "gephi64.exe".
Maybe it will work for you, too!

@eduramiba

This comment has been minimized.

Copy link
Member

@eduramiba eduramiba commented Nov 14, 2017

@JonasLohmueller That usually means your OS is 64 bit but your java installation is not.

@sadevds

This comment has been minimized.

Copy link

@sadevds sadevds commented Apr 21, 2018

thanks @eduramiba ... Its working now...

@Esmerdis

This comment has been minimized.

Copy link

@Esmerdis Esmerdis commented Apr 30, 2018

Hi. Esto me funcionó con Win10 y la última versión de Java, modificando también la capacidad de memoria todo ello precisado en mi fichero config:

${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-Xmx1024m -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 -J-Duser.language=es"

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="C:\Program Files (x86)\Java\jre1.8.0_161"

clusters' paths separated by path.separator (semicolon on Windows, colon on Unices)

#extra_clusters=

@Esmerdis

This comment has been minimized.

Copy link

@Esmerdis Esmerdis commented Apr 30, 2018

${HOME} will be replaced by user home directory according to platformdefault_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 switchesdefault_options="--branding gephi -J-Xms64m -J-Xmx1024m -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 -J-Duser.language=es"# 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="C:\Program Files (x86)\Java\jre1.8.0_161" # clusters' paths separated by path.separator (semicolon on Windows, colon on Unices)#extra_clusters=

@vishwanthini

This comment has been minimized.

Copy link

@vishwanthini vishwanthini commented Apr 30, 2018

In the C:\Program Files\Gephi-0.9.2\bin folder there are two executable for Gephi application

  1. gephi
  2. gephi64
    I launched the 1st application from this folder and Gephi application started without an issue.
    I think by default when you try to launch Gephi it is trying to open gephi64 instead of gephi, which is giving the error message
@aramis223

This comment has been minimized.

Copy link

@aramis223 aramis223 commented May 22, 2018

Java 10
Thank you Guys,
I modified the gefi.conf file and add the JRE path and it works now. Just one point, Java version 10 is installed on 'C:\Program Files\Java\jre-10' instead of the older versions on 'C:\Program Files (x86)'

@mattmattingly

This comment has been minimized.

Copy link

@mattmattingly mattmattingly commented Jun 3, 2018

OK - I have the same problem but half the brain cells needed to fix it.

It opens and a few windows open up then everything closes.

I have read the entire thread but need some hand holding.

I see the two files 1. gephi and 2 gehi64 -

I have downloaded the various JDK 1.8 - but have no idea where to go to add those lines everyone is using...... Sorry, any help?

@aramis223

This comment has been minimized.

Copy link

@aramis223 aramis223 commented Jun 4, 2018

Hi,

  1. After you installed Java, find the main folder where the java is installed. for example mine is "C:\Program Files\Java\jre-10" and includes bin, conf, legal and lib folders.
  2. Install Gephi, and go to etc folder, "C:\Program Files\Gephi-0.9.2\etc".
  3. open notepad, drop gefi.conf into notepad
  4. look for the line, begins with jdkhome=
  5. if there is a # before the jdkhome, remove the #
  6. Add the address of Java folder after the jdkhome=, for example: jdkhome="C:\Program Files\Java\jre-10"
  7. save the file in notepad
  8. run gefi, it should work
@mattmattingly

This comment has been minimized.

Copy link

@mattmattingly mattmattingly commented Jun 5, 2018

@mattmattingly

This comment has been minimized.

Copy link

@mattmattingly mattmattingly commented Jun 5, 2018

@mattmattingly

This comment has been minimized.

Copy link

@mattmattingly mattmattingly commented Jun 6, 2018

@giugnomt

This comment has been minimized.

Copy link

@giugnomt giugnomt commented Sep 17, 2018

Installing Java SE Runtime Environment 8 at http://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html That Java error disappeared! Awesome!

@ThatAndresV

This comment has been minimized.

Copy link

@ThatAndresV ThatAndresV commented Sep 26, 2018

@giugnomt fix worked for me too. Way simpler than noodling with config files.

@mattmattingly

This comment has been minimized.

Copy link

@mattmattingly mattmattingly commented Sep 26, 2018

This was referenced Oct 12, 2018
@wsamaral

This comment has been minimized.

Copy link

@wsamaral wsamaral commented Dec 12, 2018

I had to install the 64bit version to work.

@mattmattingly

This comment has been minimized.

Copy link

@mattmattingly mattmattingly commented Dec 12, 2018

@leolle

This comment has been minimized.

Copy link

@leolle leolle commented Dec 26, 2018

add the following java path in gephi.conf works for me.

jdkhome="C:/Program Files (x86)/Java/jre1.8.0_191"

gephi.conf is located at C:\Program Files\Gephi-0.9.2\etc\gephi.conf

jdkhome="C:/Program Files (x86)/Java/jre1.8.0_191"
# ${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 <dir> switch
#jdkhome="/path/to/jdk"

# clusters' paths separated by path.separator (semicolon on Windows, colon on Unices)
#extra_clusters=

@so-sal

This comment has been minimized.

Copy link

@so-sal so-sal commented Feb 1, 2019

I modified the file "C:/Program Files/Gephi-0.9.2/etc/gephi.conf"

#jdkhome="/path/to/jdk"
-> jdkhome="C:/Program Files/Java/jdk-11.0.2"

and it works!

@Tunacanunal

This comment has been minimized.

Copy link

@Tunacanunal Tunacanunal commented Feb 10, 2019

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.

it is working correctly, thanks for your advice

@Fankbai

This comment has been minimized.

Copy link

@Fankbai Fankbai commented Jun 5, 2019

go to the folder: ** \Gephi-0.9.2\bin** ,click to the Gephi.exe instead of Gephi64.exe, which works for me.

@mdf-github

This comment has been minimized.

Copy link

@mdf-github mdf-github commented Aug 30, 2019

Folks and @eduramiba
Could you please tell me how this line of code should look in gephi.conf?
#jdkhome="C:/Program Files (x86)/Java/jre1.8.0_131" nothing seems to work here.

Thanks in advance,

Did this without the "#" comment marker, but replaced the "/" with "". It worked on Windows 10.

@Nico769

This comment has been minimized.

Copy link

@Nico769 Nico769 commented Sep 26, 2019

Folks and @eduramiba
Could you please tell me how this line of code should look in gephi.conf?
#jdkhome="C:/Program Files (x86)/Java/jre1.8.0_131" nothing seems to work here.
Thanks in advance,

Did this without the "#" comment marker, but replaced the "/" with "". It worked on Windows 10.

Works perfectly on Windows 10, thanks.

@smwikipedia

This comment has been minimized.

Copy link

@smwikipedia smwikipedia commented Nov 14, 2019

Hi,
You should look for gephi.conf instead of netbeans.conf

This works for me. After I added below line, Gephi can start.

# default location of JDK/JRE, can be overridden by using --jdkhome <dir> switch
jdkhome="C:/Program Files (x86)/Java/jre1.8.0_231"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
You can’t perform that action at this time.