[josm-dev] Strange compilation errors in Eclipse

Rainer Rothkegel rainer.rothkegel at googlemail.com
Sat Aug 23 12:47:30 BST 2008


Hi,

when I try to compile the josm sources in Eclipse, I get 3 strange error 
  messages related to static imports and the gettext-commons-0.9.2.jar:

The method marktr(String) is undefined for the type AutoScaleAction 
josm/src/org/openstreetmap/josm/actions	AutoScaleAction.java	line 27	

The method tr(String) is undefined for the type MainMenu 
josm/src/org/openstreetmap/josm/gui	MainMenu.java	line 120	

The method tr(String) is undefined for the type MainMenu 
josm/src/org/openstreetmap/josm/gui	MainMenu.java	line 123	

If I change the static imports to non-static imports, everything 
compiles fine. Also, if I compile the (unchanged) sources with ant 
outside of Eclipse, there are no errors.

My java environment is based on the latest versions in the Kubuntu Hardy 
  stable repository:
ii  sun-java6-jdk                              6-07-3ubuntu2
ii  eclipse                                    3.2.2-5ubuntu2
ii  ant                                        1.7.0-3


Does anyone have an idea what the problem is?

Thanks,
Rainer





More information about the josm-dev mailing list