<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Aug 14, 2015, at 12:20, Hamda Binte Ajmal <<a href="mailto:hamda.binte.ajmal@gmail.com" class="">hamda.binte.ajmal@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Hi,<div class="">I was working on an application, that loads a few lisp files using lisp command</div><div class="">(load "fullfilepath.lisp") from java using ABCL.</div><div class="">This file in turn loads the other lisp files located in same folder hierarchy, and then i call lisp functions (defined in these files) from java and everything works perfect as long as I run the application from Netbeans.</div><div class="">Close to deployment, I tested the application by running it from jar file, I found that there are issues with filepaths, as the files are not a part of file-system, and hence <span style="font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;font-size:13px;line-height:16.8999996185303px" class="">not accessible using a file-path.</span></div><div class=""><font face="Helvetica Neue, Helvetica, Arial, sans-serif" class=""><span style="line-height:16.8999996185303px" class="">Does anyone has any idea how to fix this issue ?</span></font></div></div></div></blockquote><div><br class=""></div><div>ABCL has [extended the semantics of Lisp PATHNAME objects to be able to refer</div><div>to files within jar files][1].</div><div><br class=""></div><div>[1]:</div><div><a href="http://abcl.org/trac/browser/trunk/abcl/doc/design/pathnames/jar-pathnames.markdown" class="">http://abcl.org/trac/browser/trunk/abcl/doc/design/pathnames/jar-pathnames.markdown</a></div><div><br class=""></div><div>If you know the absolute path of the jar file locally, you may specify a file</div><div>within via something that looks like:</div><div>“jar:file:/absolute/path/to/file.jar!/path/within/jar/setup.lisp”.  See the</div><div>above referenced design specification for more details.</div><div><br class=""></div><div>The [ASDF-JAR contrib][2] provides a convenient mechanism for packaging Common</div><div>Lisp systems encapsulated by ASDF into a jar that may subsequently used as the</div><div>basis for loading these systems via the ASDF-JAR:ADD-TO-ASDF function.</div><div><br class=""></div><div>[2]: <a href="http://abcl.org/trac/browser/trunk/abcl/contrib/asdf-jar/README.markdown" class="">http://abcl.org/trac/browser/trunk/abcl/contrib/asdf-jar/README.markdown</a></div><div><br class=""></div><div>Both these options require that you know the absolute path of the deployed jar.</div><div>JAR-PATHNAME objects follow CL:MERGE-PATHNAME conventions, so one may be able</div><div>to figure out runtime locations based on the user home directory.</div><br class=""></div><div>[…]</div><div><br class=""></div><div>Please let me know if I can be of further assistance here.  </div><div><br class=""></div><br class=""><div class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">-- <br class="">"A screaming comes across the sky.  It has happened before but there is nothing <br class="">to compare to it now."<br class=""><br class=""><br class=""><br class=""><br class=""></div>

</div>
<br class=""></body></html>