[OSM-dev] [Josm] [patch] JOSM 0.5 smart add node tool
shaun at shaunmcdonald.me.uk
Thu Oct 11 20:51:07 BST 2007
On 27 Sep 2007, at 21:08, Robert Hart wrote:
> On 27/09/2007, Francisco R. Santos <frsantos at gmail.com> wrote:
>> I get an exception when execution the jar:
>> Exception in thread "main"
>> java.lang.UnsupportedClassVersionError: Bad version number
>> in .class file
>> It seems that it is compiled for Java 6. Could you compile it for
>> java 5?
> Ah. this must be some definition of "write once, run anywhere" I
> hadn't previously come across...
> Updated to java5.
The other option is to compile with Java 6 with the commandline
parameters: -source 1.5 -target 1.5
This is done as it is the only way to prevent breaking on older
systems if newer APIs have been used.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 2433 bytes
Desc: not available
More information about the dev