my dog learned polymorphism*
The moose likes HTML, CSS and JavaScript and the fly likes How to find out jre version of a client browser using javascript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "How to find out jre version of a client browser using javascript" Watch "How to find out jre version of a client browser using javascript" New topic
Author

How to find out jre version of a client browser using javascript

Jyoti Sri
Greenhorn

Joined: Mar 10, 2008
Posts: 12
Hi All ,

I have a requirement in which I need to check if the client browser has met a specific set of requirements like brower name (IE or Netscape etc.) , browser version etc.

I also need to check is java is enabled for that browse which I am doing using navigator.javaEnabled() method.

I want to check if the Jre version browser is using is greater than 1.4
Can any body suggest me some javascript code find out jre version a browser is using.

Thanks in advance

Regards

Jyoti
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

"Jyoti S",
Please check your private messages. Your account is about to be closed.
-Ben
[ June 25, 2008: Message edited by: Ben Souther ]

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41038
    
  43
This page has JavaScript code that enumerates all plugins. From that it's possible to derive the supported Java version.


Ping & DNS - my free Android networking tools app
Jyoti Sri
Greenhorn

Joined: Mar 10, 2008
Posts: 12
Thanks Ulf for your response,

The above link shows nothing (blank) in the Installed plugin section when I open this page in IE.

I am able to see some plugins when i open same link in mozilla.

Probably you are using navigator.plugins() method.But i believe this method doesn't works for IE.

Please let me know if there is any workaround for this

Thanks & Regards
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41038
    
  43
You may have to use VBScript to make this work on IE. See here for details.
Jyoti Sri
Greenhorn

Joined: Mar 10, 2008
Posts: 12
Thanks Ulf for this wonderful link!

This has almost solved my problem but I am still not able to figure out how do i know the version of jre installed ?
This script just let me to detect the existance of a java plugin , but if it exist what is the version how to find that out ?

Please share any information you have on this.

Thanks & Regards
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41038
    
  43
The page on my site shows all the supported Java versions; it's just matter of using string operations to extract the latest one.

How this would work with the VBS stuff, I have no idea; I've never used that.
amir raj
Greenhorn

Joined: Jul 29, 2009
Posts: 1


Hi All ,

I have a requirement in which I need to check if the client browser has met a specific set of requirements like brower name (IE or Netscape etc.) , browser version etc.

I also need to check is java is enabled for that browse which I am doing using navigator.javaEnabled() method.

I want to check if the Jre version browser is using is greater than 1.4
Can any body suggest me some javascript code find out jre version a browser is using.

Thanks in advance

Regards
Raja
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Did you not look at the links above?

Eric
Christian Winkler
Greenhorn

Joined: Jan 29, 2010
Posts: 2
Hi,

is it possible to find out, wich bit-version the plugins are?

Thanks & Regards,
Abra
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41038
    
  43
What is a "bit-version"?
Christian Winkler
Greenhorn

Joined: Jan 29, 2010
Posts: 2
I mean 64bit or 32bit
 
Don't get me started about those stupid light bulbs.
 
subject: How to find out jre version of a client browser using javascript
 
Similar Threads
Iam not able to connect to database using applets
Online Tutorial
Checking browser version & JavaScript enabled
JSP code for JRE version
Code to get JRE version