<div class="gmail_quote">On Tue, Mar 16, 2010 at 00:28, Philip Brown <span dir="ltr"><<a href="mailto:phil@bolthole.com">phil@bolthole.com</a>></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 <<a href="mailto:hson@opencsw.org">hson@opencsw.org</a>> wrote:<br>
> On 2010-03-15 23:30, Philip Brown wrote:<br>
<br>
</div><div class="im">>> (and technically, I think that, while there isnt a "standard"<br>
>> compiled-in thing like RPATH, I believe that java programs can<br>
>> programatically alter their own CLASSPATH if they choose.<br>
>> (so, technically, you CAN "compile in" a CLASSPATH, of sorts)<br>
><br>
> Not that I can think of, possibly you could load your classes manually, but<br>
> thats more like dlopen..<br>
><br>
<br>
<br>
</div>(dug into things from the past...)<br>
<br>
oh. that'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>