/    Sign up×
Community /Pin to ProfileBookmark

Can i detect if Sun JVM is used?

Hi anyone has a JavaScript code to detect if a client is using Sun JVM on their browser, or alternatively, to detect he/she is using Microsoft VM on their browser setting?

Any help will be greatly appreciated !

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@KorJan 13.2004 — Try this

<script language="JavaScript1.2">

if(window.navigator.javaEnabled()){

alert("Your browser is Java-enabled");}

else{

alert("Your browser is not Java-enabled");

}

</script>

I am not sure if it works on all XP (for instance on my Win XP Home, IE6, with Java enabled it works OK)
Copy linkTweet thisAlerts:
@Khalid_AliJan 13.2004 — No you can not find out if and which JVM is is being used on a system with JavaScript.

navigator.javaEnabled()

will only return true of any type of JVM is linked with browser not a certain type.

Findout from MS site,they might have an ActiveXControl(they prety much have one for every purpose) that might allow you to do this.
×

Success!

Help @K_Lo spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...