-
Notifications
You must be signed in to change notification settings - Fork 1.6k
How to use plug ins with the Toolkit
This page explains how to use Gephi plug-ins with the Toolkit. A Gephi plug-in is one ore several NBM files, which contains the JARs files we need.
The steps below shows how to obtain the JARs files from the NBM files. Once you have the JARs, you have all the plug-in code and you can include them in the classpath of your project, with the Gephi Toolkit JAR.
UnpackNBM is a small utility application that can do this for you.
- Download UnpackNBM.jar
- Open a terninal or command-line and go where you downloaded UnpackNBM.jar
- Type
java -jar UnpackNBM.jar NBM-FILE-HERE
with the path to the NBM file as an argument - That's all, the JARs appeared in the same folder as the NBM file
Not recommended, but it's possible to unpack manually using unpack200 installed on the system.
- Rename the NBM file in ZIP and unzip the folder
- Start a command line or terminal and go to this folder
- Go to the netbeans/modules/ folder, you should have a 'pack.gz' file
- Run the 'unpack200' command with the name of the file and the name of the JAR file to create, it should work if you have installed the Java JDK
unpack200 FILE.pack.gz FILE.jar
Repeat the operations above for all the NBMs files of the plug-in and include these JARs in your CLASSPATH.
We are looking forward a simpler way to do this, but unfortunately the Pack200 compression used to compress JARs is not supported in 7zip.
- Developer Handbook
- Build
- Code Style
- Localization
- Datasets
- Import CSV Data
- Import Dynamic Data
- Scripting Plugin
- Quick Start
- Démarrage rapide (FR)
- Layout
- Spatialisations (FR)
- Statistics
- Import
- Spigot importer with Wizard
- Export
- Generator
- Filter
- Extend Data Laboratory
- Preview renderer
- Add a module panel
- Add a submenu
- Build a plugin without Gephi source code
- Update a plugin
- Code Sharing Strategy
- Graph Streaming