On 08/22/2009 12:48 PM, Chris Miller wrote:
> I guess the problem is if you just compile with 1.6 and run on 1.5, the VM
> fails pretty quickly with a UnsupportedClassVersionError. Perhaps if you

> set<property name="ant.build.javac.target" value="1.5"/>  and checking 
> immediately
> on startup to see if eg NavigableSet exists you'll be able to do what you
> want? Might also have to avoid 1.6 language features like @Override on 
> interface
> implementations I suppose.

Heh, yes what I wrote was kind of daft on the face of it, but the mkgmap
distributions have always been compiled with 1.6 and target=1.5 from the
very beginning, so that was exactly what I was thinking of doing.

> I'm quite happy to see a move to 1.6, but as you say being able to give a
> clear warning when running on 1.5 is probably essential to reduce the amount
> of support required.

Agreed, so I am especially looking for Mac users to give advice and/or 
offer to help.  In particular SoyLatte is often suggested, but this 
requires that you be a research licensee. The openJDK release from the 
same source has recently appeared and is GPL of course and so has no 
such restriction, but it is marked beta and although I would be 
surprised if there were any problem with a command line app it would be 
good to have it confirmed.

..Steve
_______________________________________________
mkgmap-dev mailing list
[email protected]
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Reply via email to