It's not a secret anymore!
The moose likes JNLP and Web Start and the fly likes Browser support Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JNLP and Web Start
Bookmark "Browser support" Watch "Browser support" New topic

Browser support

Scott Selikoff
Saloon Keeper

Joined: Oct 23, 2005
Posts: 3753

Are there any browser restrictions with using Java Web start? Or more particularly, do you to tailor web start code to launch a swing application to particular browsers?

[OCA 8 Book] [Blog]
Lasse Koskela

Joined: Jan 23, 2002
Posts: 11962
As far as I know, there's nothing to tailor. The browser either recognizes the ".jnlp" extension and/or the "application/x-java-jnlp-file" MIME type or it doesn't, depending on whether it has an appropriate Java plugin installed.

I'm far from experienced when it comes to Java Web Start, though, so I might easily be wrong about things.

Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Ilja Preuss

Joined: Jul 11, 2001
Posts: 14112
Lasse, you are not wrong. We are using Java Web Start extensively, and I'm quite sure that we don't have browser-specific jnlp-files.

The reason is simple: the only thing the browser has to do is to pass the jnlp-file to the Web Start launch application. After that, it's out of the loop. (Please somebody correct me if I'm wrong.)

The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15302

Everyone is right! Except for one small statement Lasse made:

depending on whether it has an appropriate Java plugin installed.

Launching a web startable app doesn't depend on the browser having the plugin installed. The server just has to recognize the MIME type, as Lasse stated, and that information is passed back to the client. The client will need to have JWS installed which has been a default thing since 1.4. I believe with 1.3 it was an optional installs.

The application still relies on the security sandbox model that applets do, however, they are much more flexible and easier to manage. I think JWS is an awesome technology and a great way to distribute applications.
[ August 31, 2006: Message edited by: Gregg Bolinger ]

GenRocket - Experts at Building Test Data
Mark Spritzler

Joined: Feb 05, 2001
Posts: 17276

Bob Johnson is right.


(sorry guys)

Perfect World Programming, LLC - iOS Apps
How to Ask Questions the Smart Way FAQ
I agree. Here's the link:
subject: Browser support
It's not a secret anymore!