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?
Asked
Active
Viewed 2,582 times
1
-
1Isnt 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 Answers
-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:
-
-
-
And why is this helpful when the question was specifically about detecting Java in a browser that's known to be Chrome? – RealSkeptic Dec 08 '15 at 18:31
-
Whats up with the jsfiddle demo browser detect? bad link? look like it tried to open up a virus – Eric G Dec 08 '15 at 18:40
-
-
-
-
Doing UA detection is a terrible way of determining that Java isn't present; the original question is already doing plugin detection that shows that Java isn't there, so using UA is not necessary. – smorgan Dec 10 '15 at 06:26