Hi,
I'm Alessandro. I have the following problem:
I have transformed my java application in a jar file because I use Java Web
Start (Jaws) to download and execute application from a remote host. I
signed the jar to obtain any rights.
My application needs an external executable file. I put it in a directory
into jar file, but Jaws can't find the path. I tried to create another jar
file only for the directory containing external tool, but it's was
unavailing.
If I put an absolute path Jaws can find the external tool.
I can't understand from where Jaws starts to follow the relative path.
Can you help me?
Thanks
Alessandro
Roedy Green - 27 Jun 2003 13:38 GMT
>My application needs an external executable file.
It has to be put into a jar the unpacked when it arrives.
In your installer class, you fish it out with
getResourceAsStream( exeName );
then write it with a FileOutputStream to the local hard disk.
See http://mindprod.com/products.html#FILETRANSFER
JWS only transports jars.
--
Canadian Mind Products, Roedy Green.
Coaching, problem solving, economical contract programming.
See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.
david - 27 Jun 2003 15:18 GMT
Hi Alessandro, if I understand correctly you have a problem with the
.jnlp file, can you post it so we can take a look at it?
david
> Hi,
> I'm Alessandro. I have the following problem:
[quoted text clipped - 12 lines]
> Thanks
> Alessandro
Gerald Bauer - 29 Jun 2003 22:43 GMT
> If I put an absolute path Jaws can find the external tool.
> I can't understand from where Jaws starts to follow the relative path.
>
> Can you help me?
You might wonna check out the Lopica Web Start Paradise site @
http://lopica.sourceforge.net to find answers to your questions. It's
all free and self-serf. Feel free to help yourself.
- Gerald