File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JNLP and Web Start and the fly likes permission to open browser 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 "permission to open browser" Watch "permission to open browser" New topic

permission to open browser

Tim McGuire
Ranch Hand

Joined: Apr 30, 2003
Posts: 820

When I run my Swing App locally, it can open a browser window and navigate to a URL.

When I use webstart to distribute my app, it lacks permission to open a browser window. How can I give it permission to do this?

Thanks a bunch.
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15302

Well, according to the documentation you need to have:

in the JNLP file as well as having all your JAR files signed.
[ August 16, 2005: Message edited by: Gregg Bolinger ]

GenRocket - Experts at Building Test Data
Tim McGuire
Ranch Hand

Joined: Apr 30, 2003
Posts: 820

thanks! I should have read that better.
I was having trouble sorting out what the steps were between ant, jnlp, and signing jars. I got it working.

a few notes:

to sign a jar with a fake certificate, these are the ANT commands I used:

dname is expecting a name/value pair and must be in the format dname="XX=abcdefghig"
otherwise, you will get an AVA format error
I agree. Here's the link:
subject: permission to open browser
It's not a secret anymore!