<br><br><div><span class="gmail_quote">On 4/26/07, <b class="gmail_sendername"><a href="mailto:urza9814@gmail.com">urza9814@gmail.com</a></b> &lt;<a href="mailto:urza9814@gmail.com">urza9814@gmail.com</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I&#39;m trying to get Freenet 0.5 working, but I&#39;m encountering the following error:<br>
<br>[root@localhost freenet]# sh start-freenet.sh<br>Detected freenet-ext.jar<br>Detected freenet.jar<br>Sun java detected.<br>Sun Java 1.4.2 detected.<br>Starting Freenet now: Command line: java -Xmx128m<br>-XX:MaxDirectMemorySize=128m 
freenet.node.Main<br>Done<br>[root@localhost freenet]# Unrecognised command line option:<br>-XX:MaxDirectMemorySize=128m<br>Usage: java [-options] class [arg1 arg2 ...]<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (to run a class file)<br>&nbsp;&nbsp; or&nbsp;&nbsp;java [-options] -jar jarfile [arg1 arg2 ...]
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (to run a standalone jar file)<br><br>where options include:<br>&nbsp;&nbsp;-help&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;print out this message<br>&nbsp;&nbsp;-version&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; print out version number and copyright information<br>&nbsp;&nbsp;-showversion&nbsp;&nbsp;&nbsp;&nbsp; show version number and copyright and continue
<br>&nbsp;&nbsp;-cp -classpath&nbsp;&nbsp; &lt;jar/zip files and directories separated by :&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; locations where to find application classes<br>&nbsp;&nbsp;-verbose[:class|gc|jni]<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; :class print out information about class loading, etc.
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; :gc print out results of garbage collection<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; :jni print out native method dynamic resolution<br>&nbsp;&nbsp;-D&lt;name&gt;=&lt;value&gt; set a system property<br>&nbsp;&nbsp;-X&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; show help on non-standard options
<br><br><br><br></blockquote></div><br>Quick and dirty fix:&nbsp; edit start-freenet.sh and remove the -XX:MaxDirectMemorySize=128m from the command line.<br clear="all"><br>-- <br>I may disagree with what you have to say, but I shall defend, to the death, your right to say it. - Voltaire
<br>Those who would give up Liberty, to purchase temporary Safety, deserve neither Liberty nor Safety. - Ben Franklin