This is a guide to setting up a uDig development environment for the Debian linux testing (etch) distribution.
Where possible tools have been installed from scratch as I'm hoping that one day this can form the basis of a Debian GIS HOW-TO for uDig development.
Installing Subversion
- Install Subversion:
apt-get install subversion - [Configure] Subversion.
- Create a directory and checkout trunk:
/usr/src/sis$ mkdir udig /usr/src/sis$ cd udig /usr/src/sis/udig$ svn co http://svn.geotools.org/udig/trunk
Installing Java
- Debian provides the java-package utility to create a Debian installation package from supported Java(TM) 2 RE or SDK self-extracting archives (see the make-jpkg man page for details):
/pkgs/java$ apt-get install java-package
- Download the appropriate [Java] self -extracting archive (.bin, not the .rpm)
- Create the Debian package
/pkgs/java$ fakeroot make-jpkg jdk-1_5_0_06-linux-i586.bin
- Install the package
/pkgs/java# dpkg -i sun-j2sdk1.5_1.5.0+update06_i386.deb
Unfortunately no method exists yet for packaging Java Advanced Imaging (JAI) or Java Image IO (ImageIO) so we have to install these [manually]
Installing Eclipse
- Download [Eclipse] and unzip into a directory, in my case /opt
- Create a shell script to launch eclipse:
/opt/eclipse# echo '#!/bin/sh' >/usr/local/bin/eclipse /opt/eclipse# echo '/opt/eclipse/eclipse -startup /opt/eclipse/startup.jar' >>/usr/local/bin/eclipse /opt/eclipse# chmod a+x /usr/local/bin/eclipse
- Configure the Eclipse Update Manager:
- Choose Help > Software Updates > Find and Install...
- Select Search for new features to install
- Click on Import sites
- Import the attached bookmarks [DEV:file|^EclipseUpdateSitesBookmarks.xml]
- Install the following minimal set of extras (of course you can just select whole packages - however you might run into problems with dependencies):
- EMF/SDO/XSD Secondary Update Site
- EMF SDK
- GEF Update Site
- Graphical Editing Framework
- Subclipse Update Site
- Subclipse
- TPTP Update Site
- TPTP Features
- TPTP ProbeKit
- TPTP Test Tools
- TPTP Core
- TPTP Charting Service
- TPTP Platform Trace
- TPTP Test
- TPTP Features
- EMF/SDO/XSD Secondary Update Site
- Configure Eclipse