We have an ages old Java applet that we want to move forward to a newer version of Java (5 or 6), however until today we've always supported people using Java VMs as far back as version 1.1 (specifically for those still using the Microsoft VM)
As part of the upgrade, we'd like to be able to serve a web page to people using out-of-date VMs telling them which versions we now support and where they can download them from. Ideally we want to do this without having to serve a Java 1.1 applet first just to determine the JVM version.
Answers to either of the following (with code samples if possible) would be appreciated:
Question 1: is it possible to determine the JVM in a script on the server using information from the HTTP headers?
Question 2: is it possible to determine the information on the client using just JavaScript?