[josm-dev] Strange compilation errors in Eclipse
Pieren
pieren3 at gmail.com
Sat Aug 23 13:48:05 BST 2008
Your problem should be solved if you add the gettext-commons-0.9.2.jar
library in the project "java build path" settings.
Pieren
On Sat, Aug 23, 2008 at 1:47 PM, Rainer Rothkegel
<rainer.rothkegel at googlemail.com> 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
>
>
> _______________________________________________
> josm-dev mailing list
> josm-dev at openstreetmap.org
> http://lists.openstreetmap.org/listinfo/josm-dev
>
More information about the josm-dev
mailing list