[OSM-talk] FW: Re: New to osmosis and it won't work for me

Stefan Baebler stefan.baebler at gmail.com
Sat Mar 1 08:34:42 GMT 2008


Nathan Scott wrote:
> Ok this may seem like a daft question, but how do you set the path so it 
> uses version 1.6?
>
> I've installed JAVA1.6 from Sun, but not sure how to force the JAVA calls to 
> use it?
>   
you need to change variables
PATH to include java executable directory (or you need to call the java 
executable by full name, including path) and
JAVA_HOME to jre or jdk's base directory (eg JAVA_HOME=C:\Program 
Files\Java\jdk1.6.0_01)

Normally Java installers do this for you i believe.

hope it helps
Stefan
> Thanks and Regards,
>
> Nathan
> ----- Original Message ----- 
> From: "Hakan Tandogan" <hakan at gurkensalat.com>
> To: <scottn at omnitechsolutions.co.uk>
> Cc: <talk at openstreetmap.org>
> Sent: Friday, February 29, 2008 5:38 PM
> Subject: Re: [OSM-talk] FW: Re: New to osmosis and it won't work for me
>
>
>
> On Fri, February 29, 2008 18:19, scottn at omnitechsolutions.co.uk wrote:
>   
>> Hi,
>>
>>
>> Better but I now get:
>> esys at esys-desktop:~/osmosis-0.24$ sh do_it
>> Exception in thread "main" java.lang.ClassFormatError:
>> com.bretth.osmosis.core.Osmosis (unrecognized class file version) at
>> java.lang.VMClassLoader.defineClass(libgcj.so.70) at
>>     
>
> o.k., next try: that "libgcj" suggests that you are using the GCJ VM,
> which, according to its web page, "supports most of the 1.4 libraries plus
> some 1.5 additions".
>
> As far as I remember, Osmosis uses some 1.6 features, especially the
> Geometry classes. There is a link to a 1.5 compatible version on the wiki
> ( http://wiki.openstreetmap.org/index.php/Osmosis#Downloading ), but I'm
> not sure how current that one is or if GCJ+Gnu Classpath is mature enough
> to intepret that version.
>
> You wrote in an earlier email that you already downloaded JDK1.6 for your
> box. Maybe you need to explicitly set your path to that version?
>
>
> Regards,
> Hakan
>
>   





More information about the talk mailing list