Re: How to do local distribution?
Patricia Shanahan wrote:
I had not thought about that, because the job has to run under a make
variant with absolutely no user interaction but with access to local
disk, and I've always thought of Webstart as being more for interactive
jobs. I need to think, and read, about Webstart for batch jobs.
Patricia
Cool, I didn't know about that either. Luck of the draw, I guess.
I poked around and found this:
http://java.sun.com/docs/books/tutorial/deployment/jar/downman.html
Specifically:
Note : The Class-Path header points to classes or JAR files on the local
network, not JAR files within the JAR file or classes accessible over
internet protocols. To load classes in JAR files within a JAR file into
the class path, you must write custom code to load those classes. For
example, if MyJar.jar contains another JAR file called MyUtils.jar, you
cannot use the Class-Path header in MyJar.jar's manifest to load classes
in MyUtils.jar into the class path.
Bummer. "To load classes in JAR files within a JAR file into the class
path, you must write custom code to load those classes." So they're
talking about class-path but they specifically say you need to write
custom code. It doesn't look like indexing a manifest will help either.
Still, a custom classloader that looks in /lib in the current JAR...
hmm, is there any way to get the filename or a handle to the currently
running JAR?