[josm-dev] compile plugin

Dirk Stöcker openstreetmap at dstoecker.de
Sat Jan 10 12:32:38 GMT 2009


On Sat, 10 Jan 2009, Jorge Luis Chamorro wrote:

> I get the complete osm - trunk  with
> svn co http://svn.openstreetmap.org osm
> then I try
> cd osm/applications/editors/josm/plugins/
> I Try with
> cd waypoints
> for example and put
> export JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun-1.5.0.16 ; ant
>
> then I obtain a lot of errors like :
>
> [javac] /home/chamorro/josm-plugin-develop/osm/applications/editors/josm/plugins/waypoints/src/WaypointOpenAction.java:21: package org.openstreetmap.josm.gui.layer does not exist
>    [javac] import org.openstreetmap.josm.gui.layer.OsmDataLayer;
>
> I don't have a clue for what can I do next ....
>
> How can I tell to ant where I put the sources of JOSM ?.
>
> Can any of you tell me how can I compile a plugin for a dumb like me ?

Go one level up (i.e. the level before plugins) and do a svn update. This 
should update the external link to JOSM. Otherwise in the build.xml file 
of each plugin the path to josm is stored in the properties at the top.

Ciao
-- 
http://www.dstoecker.eu/ (PGP key available)




More information about the josm-dev mailing list