jump to navigation

Identify java version on remote server and more… March 29, 2007

Posted by maxmil in : Java,jsp , trackback

System properties are a useful way of determining information on a remote server.

Paste the following into a jsp deployed on the server…


java.versio = <%= System.getProperty("java.version") %><br>
java.home = <%= System.getProperty("java.home") %><br>
java.vendor = <%= System.getProperty("java.vendor") %><br>
java.vendor.url = <%= System.getProperty("java.vendor.url") %><br>
line.separator = <%= System.getProperty("line.separator") %><br>
os.arch = <%= System.getProperty("os.arch") %><br>
os.name = <%= System.getProperty("os.name") %><br>
os.version = <%= System.getProperty("os.version") %><br>
path.separator = <%= System.getProperty("path.separator") %><br>
user.dir = <%= System.getProperty("user.dir") %><br>
user.home = <%= System.getProperty("user.home") %><br>
user.name = <%= System.getProperty("user.name") %><br>

Comments»

no comments yet - be the first?