This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Error when compiling osm2world code with myEclipse

0

alt text

Have anyone of you encountered this? How to deal with it? Thanks.

asked 18 Aug '13, 09:40

%E7%8E%8B%E5%BD%A6%E6%96%87's gravatar image

王彦文
1111
accept rate: 0%

Interestingly osm2world's contact page does suggest here as a place for technical questions.

(18 Aug '13, 10:29) SomeoneElse ♦

Error messages should always be posted as text so that other users can find this question and possible answers when searching for the error.

(18 Aug '13, 10:46) scai ♦

One Answer:

2

That problem occurs because Collections.emptyIterator is only available in Java 7 and higher. OSM2World is supposed to target Java 6, but sometimes things like this slip in.

I believe the latest version of the code is clean (as of now). That particular occurrence was fixed in a recent commit.

answered 18 Aug '13, 10:39

Tordanik's gravatar image

Tordanik
12.0k15106147
accept rate: 35%

Source code available on GitHub .