How to access Java Version from a JSP

The System Object has access to the properties from the JVM.

Create the following jsp file:


String java_version = <%=System.getProperty("java.version") %>

The output will be:

java_version = 1.8.0_45 

References:

Java 7 System

Share this article:

Recent Comments