Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

applet not running, how to detect JRE

 
Akash Abrol
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
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
Akash.
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic