Where to get it
The source code can be downloaded at our Sourceforge project page here.
How to compile the source code
Geotag was developed using Eclipse 3.3. It is recommended that you use the same tool.
Here is how you set up a development environment for Geotag:
First you need the Java SE Development Kit (JDK). Geotag needs JDK 6. You can download it from the Sun Developer Network web site.
Once you have installed the JDK, download the Eclipse IDE for Java Developers from www.eclipse.org/downloads/ and install it on your computer.
Once Eclipse is installed, you can start it. Eclipse starts with a Welcome page. It leads you to lots of useful information, but to get the Geotag source code, close the Welcome page.
First you need to create a project for Geotag. There are two ways of doing this:
Method 1 - source code from CVS
This will give you access to the latest development snapshot. It is the best method, if you want to keep the source code in Eclipse up-to-date.
- From the menu select
File->Import - Expand the
CVSentry and selectProjects from CVS, then click theNextbutton. - In the next dialog,enter the following values:
- Host:
geotag.cvs.sourceforge.net - Repository path:
/cvsroot/geotag - User:
anonymous - Leave the password field empty.
- Connection type:
pserver
- Host:
- Click
Nextand enterGeotagasUse a specified module name. - Click the
Finishbutton. Eclipse will now download the latest Geotag source code.
Method 2 - downloaded source code
This gives you the source code for a particular version. It is slightly easier to do, but not as easy to keep up-to-date.
- Download the source code and save the geotag-x.xxx.tar.gz file on your hard disk.
- In Eclipse select
File->Import - Expand the
Generalentry and selectExisting Projects into Workspace, then click theNextbutton. - In the next dialog, select
Select archive fileand click on theBrowsebutton. - Browse to and double click on the downloaded file. Geotag should now be listed under
Projectsand have a check mark next to it. - Click the
Finishbutton.
- On the left hand side open
Geotag->src->org.fibs.geotag - Right click on file
Geotag.java - Select
Run As -> Open Run Dialog - In the dialog double click on
Java applicationon the left. - Click on the
Argumentstab. - Optional: In
Program argumentsenter -console=yes. (This shows error and information messages in the Eclipse console) - Not optional: In
VM argumentsenter:-Xmx256M. (This allocates enough run time memory for Geotag) - Click on the
Runbutton.
If everything went well, the Geotag application will start. Congratulations! You have compiled and run the application from source code.