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.
Below it shows the Netscape. It also has IE VBScript, but it sounds like you have seen that. Unfortunately, there are no silver bullets .
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>
Joined: Apr 28, 2006
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!
Joined: Apr 28, 2006
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?