[josm-dev] Strange compilation errors in Eclipse
Brent Easton
b.easton at exemail.com.au
Sun Aug 24 02:28:25 BST 2008
Hi Rainer,
It is a strange Eclipse bug that has been reported several times in this forum before.
Comment out the offending lines containing the marktr lines and save the file. Don't worry if this causes other compile errors.
Uncomment the offending lines and the problem will be fixed.
Regards,
Brent.
*********** REPLY SEPARATOR ***********
On 23/08/2008 at 1:47 PM Rainer Rothkegel wrote:
>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