I am writing a Java applet. When running on Windows, I need to get the OS version for clients, for example. Windows XP SP3 or Windows 2000 SP4.
I can currently use the following:
String os_name = System.getProperty( "os.name" );
String os_version = System.getProperty( "os.version" );
System.out.println( "Running on " + os_name + "(" + os_version + ")" );
And it will output something like “Running on Windows 2000 (5.0),” which is great, but I need to also get the service pack version.
Does anyone know how I can get the basic version of a service pack for Windows from a Java applet? (Without throwing an AccessControlException or, ideally, without having to sign an applet).
Thank you very much in advance.
source
share