Set Up geWorkbench Workspace in eclipse

From Informatics

Jump to: navigation, search

This page contains instruction for setting up an Eclipse project for geWorkbench desktop, by importing the necessary code from GitHub.

Install Eclipse Git Plugin

The first thing to do is install in Eclipse the Git plugin (EGit, http://eclipse.github.com/). This can be done from within Eclispe, by going to Help->Install New Software. For detailed instructions, see this tutorial, specifically the section titled "Installation of Git into Eclipse" (the tutorial also provides useful information for how to use EGit in Eclipse).

Then, there are two steps to get the code:

Step 1: get the code for geworkbench core

  1. From eclipe menu, choose Import -> Git -> Projects from Git -> Clone URI
  2. Enter URI of master branch git://github.com/geworkbench-group/geworkbench-core
  3. Click "Next" (master is checked) -> "Next" (default directory is set if you don't need to change it) -> "Next"
  4. Verify that the option "Import existing project" is selected
  5. Click "Finish"

Now you should have the gworkbench-core project in your eclipse workspace.

Step 2: get all the components

You don't need all the components to use or develop geWorkbench.

Before you add individual component, you need to get the components repository altogether. If you want to do it in eclipse, the steps are the same as the previous description for the core, except that

Set up run configuration

From menu Run Configurations,

  1. Set "Main class" to be org.geworkbench.engine.config.UILauncher
  2. Set "VM arguments" (the second tab "Arguments") to be like "-Dcomponents.dir=C:\Users\zji\github\geworkbench-components.git\components -Xmx1500M"

but change the directory name to the actual directory that you use in the previous steps.

Now you should be able to launch geWorkbench using that configuration from eclipse.

Special instruction for cytospace

cytoscape component needs an extra file to build, you can download from https://github.com/geworkbench-group/geworkbench_supporting_files/releases/download/v0.1/cytoscape.jar and put it in components/cytoscape/lib directory.

Personal tools