For Programmers: Free Programming Magazines  


Home > Archive > Java Help > August 2006 > JRE detection on the user's computer









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author JRE detection on the user's computer
apa-sf

2006-08-25, 7:02 pm

Is there a solution that can be placed at webpage and will detect is
JRE installed or not on user's computer and if not it will execute some
script (JS / PHP) and if yes - it will load an applet?

Currently not all browsers inform user when he open a webpage with an
applet and he does not have JRE on his computer. He just see a blank
space and in many cases - do not know what is that.

Andrew Thompson

2006-08-25, 7:02 pm

apa-sf wrote:
....
> Currently not all browsers inform user when he open a webpage with an
> applet and he does not have JRE on his computer. He just see a blank
> space and in many cases - do not know what is that.


It is not the browser's job to inform the end user,
that job is left to the HTML. Here is the appropriate
HTML to keep the end user informed of what they are
supposed to be seeing, and what action to take in
case something fails.

<!-- HTML applet snippet -->
<applet
class='...'
alt='This applet requires Java enabled, see you System
Administrator!'
>

This Applet uses the Java Plug-In. Get it free at www.java.com.
</applet>
<!-- End HTML applet snippet -->

HTH

Andrew T.

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com