Skip to content

Developer_Tutorial_Eclipse

Matthias König edited this page Sep 30, 2016 · 2 revisions

TODO: Outdated, this must be updated to the new github repository

This tutorial describes in 3 steps how to build the LibSBGN java classes and/or the LibSBGN jar using Eclipse.

Preparation

Add the Java tools to the Ant runtime classpath

Go to Window -> Preferences -> Ant -> Runtime -> Tab Classpath

Add the Java tools to Global Entries

  • Click Add External JARs...
  • Go to Path to JDK/lib/tools.jar

thumb|c|center|346px|Set the Ant runtime classpath in the Eclipse preferences

Add the JDK to the system PATH variable (necessary for JavaDoc)

Add

Path to JDK/bin

to the system PATH variable as described here and here

Install an Eclipse Subversion plugin

Install the Subversion plugin Subversive (installation documentation) or Subclipse (installation documentation)

Check out LibSBGN from SourceForge

Open the SVN Repository Exploring Perspective

  • Go to Window -> Open Perspective -> SVN Repository Exploring or
  • Go to Window -> Open Perspective -> Other ... and choose SVN Repository Exploring

Add a new repository location (right click in SVN Repositories)

thumb|c|center|494px|Add a new repository location

Enter

https://libsbgn.svn.sourceforge.net/svnroot/libsbgn

in URL

Optionally choose Use a custom label and enter a name, e.g. LibSBGN

Click Finish

thumb|c|center|494px|Enter the repository location information

Right click on LibSBGN/trunk

Choose Check Out

thumb|c|center|494px|Check out the trunk from the LibSBGN SVN repository

Build the LibSBGN source files, class files, jar file and JavaDoc files

Switch to the Java Perspective

To build the source files, class files and jar file

  • Right click on build.xml in project libsbgn
  • Choose Run As -> Ant Build

thumb|c|center|494px|Build the LibSBGN source files, class files and jar file

To build the source files, class files, jar file and JavaDoc files

  • Right click on build.xml in project libsbgn
  • Choose Run As -> Ant Build...

thumb|c|center|494px|Build the LibSBGN source files, class files, jar file and JavaDoc files

  • Select doc
  • Click Apply and/or Run

thumb|c|center|494px|Build the LibSBGN source files, class files, jar file and JavaDoc files

In case the build process doesn't start make sure that Ant is using the same JRE as the workspace (see figure above, tab JRE).

Clone this wiki locally
You can’t perform that action at this time.