[EMAIL PROTECTED] wrote: > Hi, > > Better but I now get: > [EMAIL PROTECTED]:~/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 java.lang.ClassLoader.defineClass(libgcj.so.70) > at java.security.SecureClassLoader.defineClass(libgcj.so.70) > at java.net.URLClassLoader.findClass(libgcj.so.70) > at java.lang.ClassLoader.loadClass(libgcj.so.70) > at java.lang.ClassLoader.loadClass(libgcj.so.70) > at gnu.java.lang.MainThread.run(libgcj.so.70) > [EMAIL PROTECTED]:~/osmosis-0.24$ > > Contents of do_it: > java -mx1024m -jar osmosis.jar --read-xml file=uk-080227.osm \ > --bounding-polygon file="MyArea.txt" --write-xml \ > file="MyArea.osm" > > Thanks and Regards, > > Nathan > > > On Fri, February 29, 2008 17:28, [EMAIL PROTECTED] wrote: > >> Hi, >> >> >> I am trying to get osmosis to work for me for the first time. I'm not >> sure I have it installed properly because I try this : >> >> java -mx1024m -jar osmosis.jar --read-xml file=uk-080227.osm >> --bounding-polygon file="MyArea.txt" --write-xml >> file="MyArea.osm" >> > > Those three lines are seperate lines in the script called "do_it", right? > Please add a backslash after the first two lines, otherwise the shell > assumes that it has to run three commands, one calles "java", the next > called "--bounding-polygon" and the third called "file=". > > Your script should look like: > > --- cut here --- > java -mx1024m -jar osmosis.jar --read-xml file=uk-080227.osm \ > --bounding-polygon file="MyArea.txt" --write-xml \ > file="MyArea.osm" > --- cut here --- > > >> And I get: >> [EMAIL PROTECTED]:~/osmosis-0.24$ sh do_it >> ... >> gnu.java.lang.MainThread.run(libgcj.so.70) do_it: 2: --bounding-polygon: >> not found [EMAIL PROTECTED]:~/osmosis-0.24$ >> > > This output supports my theory about your shell script. > > > Regards, > Hakan > > > > It appears that you are using GJC (the GNU java runtime), I'm not sure if osmosis is fully compatible with it. According to the wikipage it requires Java 1.6 (aka Java 6) to run.
-- ------------------------ Jason Reid Web Technical Administrator Faculty of Social Sciences Social Sciences 515 Phone: 220-7903 ------------------------ _______________________________________________ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk