Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / June 2003

Tip: Looking for answers? Try searching our database.

Java Web Start

Thread view: 
Alessandro - 27 Jun 2003 10:06 GMT
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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.