aspose file tools*
The moose likes JNLP and Web Start and the fly likes installing things trough JWS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JNLP and Web Start
Bookmark "installing things trough JWS" Watch "installing things trough JWS" New topic
Author

installing things trough JWS

Kino Lobo
Greenhorn

Joined: Feb 08, 2006
Posts: 20
hello!

Well, I'm pretty rookie about JWS, I've read some articles on the net, but I'd like some help, you know something more straigh foward...

The question is, can I use the JWS tecnology to install a driver in the client machines?

thanks!


I'd rather trust a man who works with his hands!
Jared Cope
Ranch Hand

Joined: Aug 18, 2004
Posts: 243
Hi,

At the most basic level, JWS is used to kick off a Java program simply by clicking a hyperlink in a webpage. All the neccessay application files and resources are copied to the client machine in the process of starting up.

So if your program could install the driver, then in theory, yes JWS can help you out.

Cheers, Jared.


SCJP 1.4 91%, SCJP 1.5 88%, SCJD B&S
Peer Reynders
Bartender

Joined: Aug 19, 2005
Posts: 2906
Originally posted by Jared Cope:
JWS is used to kick off a Java program simply by clicking a hyperlink in a webpage.


As far as I understand it, it's not quite that simple.
  • If the JAR is unsigned its basically restricted to a secure sandbox
  • There is a secure API that lets you import and export files from the local disk under the users control (i.e. Open/Save dialogs popping up all the time.)
  • To obtain unrestricted access the JAR will have to be signed with a digital certificate from a Certifying Authority.
  • Even once the Java app has gotten passed all these hurdles, you still have to contend with the security model of the underlying platform. For Example, on a Windows Box the user must belong to a group that has the necessary privileges to install hardware drivers (typically the Administrators group - though you could tailor a special group towards the requirements of the application).

  • How secure is Java Web Start?
    [ October 02, 2006: Message edited by: Peer Reynders ]

    "Don't succumb to the false authority of a tool or model. There is no substitute for thinking."
    Andy Hunt, Pragmatic Thinking & Learning: Refactor Your Wetware p.41
    Jared Cope
    Ranch Hand

    Joined: Aug 18, 2004
    Posts: 243
    Hi,


    As far as I understand it, it's not quite that simple.


    Sure, you do have to do a few things around the edges, but I can see JWS working for this task which was the original question.


    If the JAR is unsigned its basically restricted to a secure sandbox


    Yes. You have to sign your jar files. But the certificate does not have to be issued from a certifying authority. If JWS doesn't recognize the authority, the user is prompted to accept the risk. Our webstart application is used internally, so there is no need to have a publicly trusted certificate. Depends on your needs.


    you still have to contend with the security model of the underlying platform. For Example, on a Windows Box the user must belong to a group that has the necessary privileges


    Yes. But this is the case regardless of the technology used. JWS or something else. If a locked down user clicks on the webpage webstart link, then the driver will most probably not be installed because of the security permissions you mentioned.

    Cheers, Jared.
    Cameron Wallace McKenzie
    author and cow tipper
    Saloon Keeper

    Joined: Aug 26, 2006
    Posts: 4968

    Here's some info about JWS from Sun:

    http://java.sun.com/products/javawebstart/

    -Cameron
     
    I agree. Here's the link: http://aspose.com/file-tools
     
    subject: installing things trough JWS
     
    Similar Threads
    Invalidating a session ?
    general java web services question
    Java and activeX ?
    JWS - A Good Way To Demo Apps
    Why JWS is not popular?