jQuery in Action, 3rd edition
The moose likes Applets and the fly likes applet not running, how to detect JRE Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "applet not running, how to detect JRE" Watch "applet not running, how to detect JRE" New topic

applet not running, how to detect JRE

Akash Abrol

Joined: Jan 30, 2006
Posts: 9
i have created an applet and it is not running on client machines where JRE is not installed...Is there any way to detect whether JRE is installed on a client machine or not....???
or is it possible to run applets on clients where JRE is not installed..??

thanks and regards
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
You do need a JRE to run applets. If there is none, you can specify alternate HTML to be displayed instead. I suppose that could include JavaScript to redirect to a page for users that don't have an JRE.

Using the OBJECT and EMBED tags it's also possible to specify that a user should be asked whether he wants to download a JRE if he doesn't have one. The Plugin Developers Guide has details on how to do that.
It is sorta covered in the JavaRanch Style Guide.
subject: applet not running, how to detect JRE
It's not a secret anymore!