<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
The problem is that you haven't included all the jars on the
classpath.  Take a look at the osmosis.bat file and see how that
launches osmosis (it doesn't use the -jar option).<br>
<br>
The simplest solution is to modify the existing osmosis.bat file to
specify the -Xmx option.  It is possible to define a configuration file
instead but I can't remember how to do it off the top of my head.<br>
<br>
IbrahimB22 wrote:
<blockquote cite="mid:24659397.post@talk.nabble.com" type="cite">
  <pre wrap="">Nopes, I do have version 1.6, so I guess the problem is something else...


Karl Newman wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">On Sat, Jul 25, 2009 at 5:33 AM, IbrahimB22
<a class="moz-txt-link-rfc2396E" href="mailto:ibrahim_bouchrika@hotmail.com"><ibrahim_bouchrika@hotmail.com></a>wrote:

    </pre>
    <blockquote type="cite">
      <pre wrap="">Alright, getting closer,

When I run the command you suggested (tried it with the 2-steps method
first, then with the method in one step; the 2-step methode creates the
new
osm file, but both methodes crash because of an outOfMemoryException)
I then tried running it like this:

C:\osmosis-0.31.1\bin>java -Xmx1024m -jar "C:\osmosis-0.31.1\osmosis.jar"
--read-xml file="belgium.osm" --bb left="4.6313" top="50.914"
right="4.7762"
bottom="50.8416" clipIncompleteEntities=true idTrackerType=BitSet
--write-xml leuven.osm

which outputs this:

25-jul-2009 14:27:02 org.openstreetmap.osmosis.core.Osmosis run
INFO: Osmosis Version 0.31.1
25-jul-2009 14:27:02 org.openstreetmap.osmosis.core.Osmosis main
SEVERE: Execution aborted.
java.lang.NoClassDefFoundError: org/java/plugin/PluginLifecycleException
       at org.openstreetmap.osmosis.core.Osmosis.run(Osmosis.java:73)
       at org.openstreetmap.osmosis.core.Osmosis.main(Osmosis.java:30)
Caused by: java.lang.ClassNotFoundException:
org.java.plugin.PluginLifecycleException
       at java.net.URLClassLoader$1.run(Unknown Source)
       at java.security.AccessController.doPrivileged(Native Method)
       at java.net.URLClassLoader.findClass(Unknown Source)
       at java.lang.ClassLoader.loadClass(Unknown Source)
       at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
       at java.lang.ClassLoader.loadClass(Unknown Source)
       at java.lang.ClassLoader.loadClassInternal(Unknown Source)
       ... 2 more


      </pre>
    </blockquote>
    <pre wrap="">I believe that error occurs when you're using Java 1.5. Osmosis requires
Java 1.6.

Karl

_______________________________________________
dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:dev@openstreetmap.org">dev@openstreetmap.org</a>
<a class="moz-txt-link-freetext" href="http://lists.openstreetmap.org/listinfo/dev">http://lists.openstreetmap.org/listinfo/dev</a>


    </pre>
  </blockquote>
  <pre wrap=""><!---->
  </pre>
</blockquote>
<br>
</body>
</html>