JNLP from jars and other files and folders
Hi all,
I recently downloaded an application (open source) that came with a bunch of .jar files,. including a couple in another folder, and a couple other files that the jars need to read to start up.
I want to bundle this all into a JNLP. Is there any way to do this with these various other files?
I could possibly get the source code for the entire project, put those other fies into a new .jar, and change all the references to point to that jar, but I think that that would be a huge undertaking. Is there a simpler way?
Thanks!
Sam
[574 byte] By [
Asbestosa] at [2007-11-26 18:35:25]

# 1
> I recently downloaded an application (open source)
What application? Got a URL?
>..that came with a bunch of .jar files,. including
> a couple in another folder, and a couple other
> files that the jars need to read to start up.
> I want to bundle this all into a JNLP. Is there any
> way to do this with these various other files?
It depends how the application loads
resources. Any resources loaded using
Class.getResource() should be fine as
long as each jar is referenced in the JNLP.
The other question is how this 'couple
other files' are loaded, if they use a File
object to get as reference to them, that
will need to be changed. Thay can be
accessed using Class.getResource()
as soon as they are archived and added
to the JNLP as a resource.
# 2
> What application? Got a URL?
Sure. It's the XAMJ Project's Warrior browser: http://sourceforge.net/projects/xamj.
To use it, you run an installer JAR, and that produces a folder with a whole bunch of other files, including a JAR you have to click on to launch the browser.
> It depends how the application loads
> resources. Any resources loaded using
> Class.getResource() should be fine as
> long as each jar is referenced in the JNLP.
So are you saying that if these extra files are referenced in the program using Class.getResource(), it won't care whether it's in a JAR or not (so long as the JAR is mentioned in the JNLP)?
> The other question is how this 'couple
> other files' are loaded, if they use a File
> object to get as reference to them, that
> will need to be changed. Thay can be
> accessed using Class.getResource()
> as soon as they are archived and added
> to the JNLP as a resource.
I'm not sure I understand this. Can you explain any further?
Thanks!