[josm-dev] Building JOSM

David Earl david at frankieandshadow.com
Wed Oct 17 18:25:55 BST 2007


On 17/10/2007 17:52, Frederik Ramm wrote:
> Hi,
> 
>> I checked out JOSM into a clean directory (in Windows XP) and imported 
>> into Eclipse workspace. The build says...
>>
>>    Project JOSM is missing required library:
>>    'C:\...\josmsource\core\lib\metadata-extractor-2.3.1.jar'
>>
>>    Project JOSM is missing required library:
>>    'C:\...\josmsource\core\lib\MinML2.jar'
> 
> It sounds as if you somehow have an old build file, since the metadata
> thingie has just been renamed to metadata-extractor-2.3.1-nosun.jar
> and the MinML2.jar is not required any more.
> 
> Is it possible that the workspace was not *so* clean, with some sort
> of build dependency file left over from the last time?
> 
> If I import everything into a clean Eclipse setup in Linux, it usually
> works (apart from some bogus errors on one or two "marktr" calls which
> go away if I make a change to the file and save it).

Tried cleaning it all out again, different this time (don't know why): 
now I get
   Project JOSM is missing required library:
'\home\fred\src\eclipse-workspace\JOSM\lib\metadata-extractor-2.3.1-nosun.jar'

:-)

OK, so I found that in the src/.classpath file. Presumably I should 
remove '\home\fred\src\eclipse-workspace\JOSM\' here.

Done that...

Now, after re-saving for marktr (and similar for tr in a different 
file), I have 3 errors (and 54 warnings):

JOSM/src/org/openstreetmap/josm/gui/MapMover.java line 95
The method mouseDragged(MouseEvent) of type MapMover should be tagged 
with @Override since it actually overrides a superclass method

JOSM/src/org/openstreetmap/josm/gui/MapMover.java line 179
The method mouseMoved(MouseEvent) of type MapMover should be tagged with 
@Override since it actually overrides a superclass method

JOSM/src/org/openstreetmap/josm/gui/MapMover.java line 160
The method mouseWheelMoved(MouseWheelEvent) of type MapMover should be 
tagged with @Override since it actually overrides a superclass method

... and these cause crashes if I go ahead and run it.

David





More information about the josm-dev mailing list