1

I am trying to find a way to detect a user's java version using javascript. I have tried both PluginDetect and deployJava.js. Both work on Firefox but return null on Chrome. Not getting any warning about blocked plugins, and no console messages, so I'm not entirely sure what the problem is. Anyone know?

Steve
  • 815
  • 3
  • 10
  • 18
  • 1
    Isnt java disabled on Chrome? – Eric G Dec 08 '15 at 18:18
  • 3
    [Chrome no longer supports Java applets](https://java.com/en/download/faq/chrome.xml). – RealSkeptic Dec 08 '15 at 18:20
  • @RealSkeptic was just about to edit my comment to add that – Eric G Dec 08 '15 at 18:21
  • check this https://java.com/en/download/faq/chrome.xml – vinay Dec 08 '15 at 18:28
  • That's what I was afraid of. So I need some kind of Java webstart app to do this? BTW, it doesn't work on Safari either, contra what the post on java.com says. IDK if it's for the same reason. – Steve Dec 08 '15 at 18:47
  • @Steve May be same issue with Safari. The link is at least 3 months old. You need alternate choices to make your application cross-browser. – vinay Dec 08 '15 at 19:11
  • Safari runs Java Applets on my Mac (Yosemite - Safari 9.0.1), so I don't think it's the same problem. Also, PluginDetect seems to be working on it. Make sure you have the **JRE** installed on the Mac, as the JDK does not include a plug-in. – RealSkeptic Dec 08 '15 at 19:49

1 Answers1

-1

Chrome no longer supports NPAPI (technology required for Java applets) or check also if javascript is enable on chrome. But i found some sites maybe this can help u to detect browser and browser version:

Using jquery api

2nd site

jsfiddle demo browser detect

css-trick.com

Javascript detect what Chrome version STACKOVERFLOW

And This last

Community
  • 1
  • 1
Phoenix
  • 457
  • 1
  • 8
  • 23