client java version

Is it possible to pass the version of java that a client is running to the server so that it shows up in the client section on the server webpage?

In troubleshooting problems, it would be a big help to see if the client’s machine is running java 1.4 or java 1.5. I have found some performance issues that I associate with old versions of java running on client machines.

Hi Jim,

Right now you can use Security.setUserProperty(name, value). Not sure that this gets pushed to the server though

To find out about the Java version etc. with our Tools Plug-in from the Client class…

You could always use the technique described in the following thread:

http://forum.servoy.com/viewtopic.php?t=6188

Hope this helps.

By far the easiest is this snippet:

var javaVersion =  Packages.java.lang.System.getProperty("java.version");
var javaVendor = Packages.java.lang.System.getProperty("java.vendor");

application.output("java version = " + javaVersion +
                           " from " + javaVendor);

This approach can be applied to get other System properties as well …including properties such as :

os.name Operating system name
os.arch Operating system architecture
os.version Operating system version

Regards,
Tom