Q:

How to print or get JRE version of an application running on a server?

I mean using javacode I want to find the JRE version of application but not server.
In my production server I am having thousands of applications in java like tomcat,websphere,axway etc. I want to know particular application jre version.I will write a class and I want print using that. That class will be placed in particular application.
I tried this link but I didn't get it.

A:

You should try System.out.println(System.getProperty("java.version"));
I have successfully tested that it prints the actual version of Java that is used to run the code.

