I have installed Java 8 on a Mac (OS 10.9.5) and it now appears in System Preferences. However, when I type the following in the command line: java -version it shows that I am using version 6: java. Java SE 8 Archive Downloads (JDK 8u202 and earlier) Go to the Oracle Java Archive. The JDK is a development environment for building applications using the Java programming language. The JDK includes tools useful for developing and testing programs written in the Java programming language and running on the Java TM platform.
What is Java SE Development Kit 8 for Mac The Java SE Development Kit 8 lets you develop and deploy Java applications on desktops and servers, as well as in today's demanding embedded environments. Java offers the rich user interface, performance, versatility, portability, and security that today’s applications require.
Check you have Java properly installed on your system. If you're on Linux, you may provide the path to the jdk with ./bin/gephi --jdkhome $JAVA_HOME
This error message is due to memory settings, see following section.
Memory available to Gephi is determined by Java. Less or more memory can be allocated by configuring Gephi’s startup settings. If too less memory is allocated, Gephi will stop running when it reached the limit and you will loose your current work. If more memory than what the system is equipped with is set, Java will not be able to start and return “JVM Creation failed” message. By default, maximum memory is set to 512mo.
To modify memory settings, you need to edit gephi settings file. Modify the value after the -Xmx option to change the maximum heap space. For example, to use a heap size between 256 and 1024 MB, change the options to -Xms256m and -Xmx1024m. If you have Gephi open, you must close and reopen Gephi before new options take effect. On computers with 2GB of memory, you can set -Xmx1400 to get maximum performance.
How to edit gephi.conf:
When multiple JRE or JDK are installed on the same machine, you can specifty to Gephi to use a particular path. Edit gephi.conf as described in the upper section, uncomment the jdkhome line and set the JRE or JDK path.
Locate and delete gephi user directory to clean your installation.
C:Documents and SettingsusernameApplication Data.gephi