Search This Blog

Wednesday, January 6, 2010

01-06-2009

We've got a SVN area to hold CSA code.  I'll drop in the daemon launcher today.  One of the goals of the launcher is to create an executable JAR that contains everything that the application needs to run.  I've never done this before so it'll be an interesting exercise.  Can I really create something that can be run as "java -jar foo.jar"?  The answer is yes.  There is an issue with URLClassLoader in that it cannot access nested jars.  My solution?  Copy the nested jars into temporary files and feed those files to URLClassLoader.  Things work and we can use java -jar to launch the entire application.

No comments:

Post a Comment