LOAD-FROM-JAR (filename &OPTIONAL jarfile)
LOAD-FROM-JAR will load a LISP file from either the jarfile (or classpath)
containing Jatha, or from a specified jar file.
Examples
(load-from-jar "myfunctions.lisp") ;; uses getResource() on the current classpath
(load-from-jar "foo/myfunctions.lisp" "mylisplibrary.jar") ;; Uses JarFile to read the jar.
Notes
- Files at the top level of a jar file do not have a leading slash. Use "sample.lisp", not "/sample.lisp".
- This should be extended someday to open a stream to read a jar file.
- This should be extended to load objects like icons and images.