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.
The Java Runtime Environment, or JRE, is a software layer that runs on top of a computer's operating system software and provides the class libraries and other resources that a specific Java program needs to run. The JRE is one of three interrelated components for developing and running Java programs.
In the Search bar, type Control Panel. Click Programs. If the Java icon present, then Java is installed. If not, click Programs and Features, and look for installed versions of Java in the J's.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With