Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JNLP and Java Web Start

 
mitrship gupta
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi to all
as i know java web start installs automatically with jre 1.5. but for earlier version u have to seperately install java web start.
i have a developed application using jnlp. now wht will happen if i run this applciation on machine on which jre1.3 is installed but not java web start???
is there any way i can ensure my application runs on any machine with jre installed???
can i make my application download and install java web start if its not available on comp??
thanks in advance
Saurabh
 
Jared Cope
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by mitrship gupta:
hi to all
as i know java web start installs automatically with jre 1.5. but for earlier version u have to seperately install java web start.


It installs as standard with 1.4 too, but 1.3 may be a problem like you say.


i have a developed application using jnlp. now wht will happen if i run this applciation on machine on which jre1.3 is installed but not java web start???


I suspect nothing will happen. The machine won't know that this file should be launched with webstart because webstart is not installed.

A tough situation to be in. You need some kind of webstart installed in order to get an application running or installed through a .jnlp file.

Maybe others have some suggestions.

Cheers, Jared.
 
mitrship gupta
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks for the help
i found that there is a way
detect the browser
run java web start dedection script(browser dependent)
install if not

saurabh
 
Jared Cope
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Originally posted by mitrship gupta:
i found that there is a way
detect the browser
run java web start dedection script(browser dependent)
install if not


Cool. Can you post the script in a 'code' block so that we can all see for future reference?

Cheers, Jared.
 
Ed Ewing
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Instructions on detecting the presence of WebStart are available on Sun's page:

http://java.sun.com/j2se/1.5.0/docs/guide/javaws/developersguide/launch.html

That script seems good at detecting whether WebStart is installed or not. I'm not sure I like their instructions on how to auto-install WebStart if it isn't installed.
 
Jared Cope
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Thanks for the link. I'll check it out sometime.

Cheers, Jared.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic