The goal of this tutorial is to create a Eclipse project from the source code. See How to get Gephi to download the source code. You should have an gephi directory ready with sources.

Step1: Create workspace and project

Start Eclipse and set the workspace to the gephi directory you created. According to the precedent tutorial it should be gephibzr.

Then create a new Java Project

New Java Project

Your package explorer should look like this

Gephi package explorer view when project is created

Step2: Configure build path

Right click on the gephi project and look for the build path menu and then the Configure Build Path command.

Eclipse build path menu

The libraries JAR should be automatically added to the libraries tab but it is not the case for the native library we need. See next step to configure this but already at this point your workspace should build without errors. If not, check you have a JRE 1.6 and all JARs present in the gephi/lib directory added to the Libraries tab. Include also JARs in sub-directories.

Step3: Configure Native Library

JOGL requires native library for each operating system. Select the Native library location line and edit it.

Configure native library directory menu

Native libraries are located in the lib/jogl directory. Click on Workspace and look for this directory.

Native Library Folder Configuration

Now Gephi should work perfectly, with the graph working. If everything is working except the graph (and getting some exceptions) this means this last steps is not working. Check if your operating system is compatible with Gephi.

Debug in Eclipse

To debug and get exceptions in the Eclipse console, you have to edit Gephi.java. Fint the variable DEBUG and set it at true.

Inscrease memory

The JVM memory may be limited when you execute Gephi from Eclipse. To set a maximum memory value go to the Run Dialog and edit VM arguments. Add -Xmx256m to set maximum memory to 256 mb.