<p>Hi Brett</p>
<p>Thanks for your answer!</p>
<p>Yes I have compiled the source with the command ant build.</p>
<p>The reason I didn't use the binaries is that I work on a mutualised server where I don't have admin rights. Thus  I can't do anything that requires a sudo command like sudo apt-get.</p>
<p>After compilation I have put the path to osmosis (home/my_user/data/prog/package/bin) in the path variable. So now I simply call it from anywhere with the command "osmosis".</p>
<p>When I try osmosis --arguments I get this java error which makes me think that osmosis is found properly but that he doesn't find the path to some java library or something.</p>
<p>Does it make a difference that osmosis is installed in my home and not in a higher level directory?</p>
<p>Cheers</p>
<p>Stéphane</p>
<p>Sent from Android</p>
<div class="gmail_quote">On Sep 1, 2012 5:17 PM, "Brett Henderson" <<a href="mailto:brett@bretth.com">brett@bretth.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Stéphane,<br><br>On 31 August 2012 23:11, Stéphane Henriod <span dir="ltr"><<a href="mailto:s@henriod.info" target="_blank">s@henriod.info</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Hello<br><br>it's the first time I post on this list, so I hope it's the right place to ask this question!<br><br>I want to use Osmosis to keep a PostGIS database up-to-date (for use with Mapnik), as explained here <a href="http://wiki.openstreetmap.org/wiki/Minutely_Mapnik" target="_blank">http://wiki.openstreetmap.org/wiki/Minutely_Mapnik</a><br>


<br>I have installed osmosis via git clone this morning, so I assume it's the last version (0.41)<br><br>Apparently, osmosis has been installed properly, because the command <i>osmosis</i> returns the usage example:<br>


<blockquote><i>humadat@ssh:~$ osmosis                                                          <br>osmosis                                                                         <br>                                                                                <br>


Example Usage                                                                   <br>                                                                                <br>Import a planet file into a local PostgreSQL database. .... blablabla<br>


</i></blockquote>But the problem comes as soon as I want to actually use it:<br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote"><i>humadat@ssh:~$ osmosis --read-replication-interval workingDirectory=$WORKDIR_OSM</i>  <i>--simplify-change  --write-xml-change changes.osc.gz</i><br>


<i>Exception in thread "main" java.lang.NoClassDefFoundError: org/codehaus/classwor</i><br><i>lds/Launcher</i><br><i>Caused by: java.lang.ClassNotFoundException: org.codehaus.classworlds.Launcher</i><br><i>        at java.net.URLClassLoader$1.run(URLClassLoader.java:202)</i><br>


<i>        at java.security.AccessController.doPrivileged(Native Method)</i><br><i>        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)</i><br><i>        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)</i><br>


<i>        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)</i><br><i>        at java.lang.ClassLoader.loadClass(ClassLoader.java:248)</i><br><i>Could not find the main class: org.codehaus.classworlds.Launcher.  Program will</i><br>


<i>exit.</i><br></blockquote><br>Any idea where it can come from? I get the same error with any other option that I have used<br></blockquote><div><br>Have you compiled the application yet?  If you download the source code you need to compile it first.<br>

<br>Is there a reason you haven't used the pre-built version described on the wiki?<br><a href="http://wiki.openstreetmap.org/wiki/Osmosis#Latest_Stable_Version" target="_blank">http://wiki.openstreetmap.org/wiki/Osmosis#Latest_Stable_Version</a><br>

<br>Which instructions did you use to find Osmosis?<br><br>Brett<br></div></div><br>
</blockquote></div>