my dog learned polymorphism*
The moose likes JNLP and Web Start and the fly likes Java Web Start - Detect JRE? 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 "Java Web Start - Detect JRE?" Watch "Java Web Start - Detect JRE?" New topic
Author

Java Web Start - Detect JRE?

C Khurana
Greenhorn

Joined: Apr 28, 2006
Posts: 8
Hi All,

We are in the process of creating a swing based application and need to run it across the internet via our web-page. The thing is that the JNLP file is called via the JSP, and if the client system is devoid of the JRE, the JNLP is nt able to execute (but obviously!).

What I want to know is a work around to detect the presence of the JRE on that client m/c (via a script?!?) in order to initiate a download in case the JRE is not there.

The constraint here is that the web application would be run -
1. On different Browsers;
2. on different O.S.

So the solution would have to be cross platform compatible. I came across the SUN script for implementing the JWS check but it uses the VBScript which browsers other than IE won't be able to digest.

I am in desperate need of a solution guys! Pls try and help!
And also let me know if I have to post this under some other topic.

Thanks!
- C K
Jeff Osborn
Greenhorn

Joined: Jun 12, 2006
Posts: 8
That sounds like fun. Well I have been wading through a bunch of the sun docs today looking for other things and I ran across just the thing you are asking about.

Creating the Web Page That Launches the Application

Below it shows the Netscape. It also has IE VBScript, but it sounds like you have seen that. Unfortunately, there are no silver bullets .

Good Luck

Jeff

Detecting if Java Web Start is installed on Netscape
Here is the first script that should be run on a web page for launching an application via JNLP:


[ June 14, 2006: Message edited by: Jeff Osborn ]

Jeff Osborn<br />Procelerate Technologies<br /><a href="http://procelerate.com" target="_blank" rel="nofollow">procelerate.com</a>
C Khurana
Greenhorn

Joined: Apr 28, 2006
Posts: 8
Thanks a lot for the effort Jeff. But I really need to have something which works faultlessly on the NON IE browsers as well! Help is required here gys! Pls someone!

- CK
C Khurana
Greenhorn

Joined: Apr 28, 2006
Posts: 8
Hi Again,

Well, I was just thinking maybe if I would tell more about my application a bit, you guys can understand my problem better.

I am launching a JNLP file (a JSP file having JNLP syntax, i.e.) along with some dynamic parameters like names of image files stored on the server etc. In total there are 3 arguments that are being passed to the main() class in the JAR file of my application.

My idea here was to launch this application of mine remotely at the client, that is why I went for the JWS solution.

Is there any other way this can be done, i.e. if I don't use the JWS, can I achieve the same results?

Kindly get back if you get any ideas...

Thanks!

C.K.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Java Web Start - Detect JRE?