<div class="gmail_quote">On Tue, Mar 16, 2010 at 00:28, Philip Brown <span dir="ltr">&lt;<a href="mailto:phil@bolthole.com">phil@bolthole.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

<div class="im">On Mon, Mar 15, 2010 at 3:08 PM, Roger HÃ¥kansson &lt;<a href="mailto:hson@opencsw.org">hson@opencsw.org</a>&gt; wrote:<br>
&gt; On 2010-03-15 23:30, Philip Brown wrote:<br>
<br>
</div><div class="im">&gt;&gt; (and technically, I think that, while there isnt a &quot;standard&quot;<br>
&gt;&gt; compiled-in thing like RPATH, I believe that java programs can<br>
&gt;&gt; programatically alter their own CLASSPATH if they choose.<br>
&gt;&gt; (so, technically, you CAN &quot;compile in&quot; a CLASSPATH, of sorts)<br>
&gt;<br>
&gt; Not that I can think of, possibly you could load your classes manually, but<br>
&gt; thats more like dlopen..<br>
&gt;<br>
<br>
<br>
</div>(dug into things from the past...)<br>
<br>
oh. that&#39;s right, there isnt a nice,simple, CLEAN way to do it.<br>
You have to do interesting things like override the system ClassLoader<br>
with your own custom one. heh heh heh...<br>
<div><div></div><div class="h5"><br><br></div></div></blockquote><div><br>setting the path in the manifest of the jar file which contains the main would be possible:<br><br>* <a href="http://en.wikipedia.org/wiki/Classpath_%28Java%29#Setting_the_path_in_a_Manifest_file">http://en.wikipedia.org/wiki/Classpath_%28Java%29#Setting_the_path_in_a_Manifest_file</a><br>

* <a href="http://stackoverflow.com/questions/858766/generate-manifest-class-path-from-classpath-in-ant">http://stackoverflow.com/questions/858766/generate-manifest-class-path-from-classpath-in-ant</a><br><br>which is kind of compiled in.<br>

<br>rupert.<br><br></div></div>