/    Sign up×
Community /Pin to ProfileBookmark

Java Version using Javascript

Hi,

Is there a way of obtaining the Java version using Javascript? A bit like grabbing the browser name etc. But, this actually checks a users Java level?

I ask, due to the need to be able to offer a ‘lesser’ version of an applet, one without TImerTask and other Java 1.3 bits. Some of my users have out-dated machines or ones that cannot use Sun JVM due to company needs of Microsoft JVM

I have found one link to a script, but it seems to return the same value regardless of versions…

Help gratefully accepted.

Dave

to post a comment
JavaScript

4 Comments(s)

Copy linkTweet thisAlerts:
@KorFeb 03.2005 — I guess that you should build your Java applet to be able to alert user if an old version of plugin is on use...
Copy linkTweet thisAlerts:
@FangFeb 03.2005 — Use object detection rather than JavaScript language sniffing.
Copy linkTweet thisAlerts:
@squaresilverauthorFeb 04.2005 — [i]Originally posted by Kor [/i]I guess that you should build your Java applet to be able to alert user if an old version of plugin is on use[/QUOTE]
Kor, good idea, but not possible. If the unavailable classes are in the import list, even if not used, as the applet is loaded it will attempt to import them and fail.

I have even commented their use out of the code, so that the imports would never be used, but applet will load all imports regardless. The check needs to be before the applet is loaded....hence this question

[i]Originally posted by Fang [/i]Use object detection rather than JavaScript language sniffing.[/QUOTE]
If it will work, I will try it, but I know not how to??? Can you point me somewhere?

Cheers for all the reads this thread is getting.

Dave
Copy linkTweet thisAlerts:
@FangFeb 04.2005 — [URL=http://www.quirksmode.org/js/support.html]Object detection[/URL]
×

Success!

Help @squaresilver 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.13,
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,
)...