Skip to content

Instantly share code, notes, and snippets.

@isapir
Created June 23, 2012 22:26
Show Gist options
  • Save isapir/2980328 to your computer and use it in GitHub Desktop.
Save isapir/2980328 to your computer and use it in GitHub Desktop.
prints out all the system properties for the JVM
<style>
tr td { border-bottom: 1px dotted gray; vertical-align: top; margin-top: 2px; padding-left: 0.5em; }
tr td:first-child { text-align: right; padding-right: 0.5em; border-right: 1px dotted #CCC; }
table { border: 1px solid gray; width:90%; }
</style>
<cfoutput>
<cfset system = CreateObject( "java", "java.lang.System" )>
<cfset properties = system.getProperties()>
<cfset propertyNames = ListSort( StructKeyList( properties ), 'text' )>
<table>
<cfloop list="#propertyNames#" index="li">
<tr><td>#li#:</td><td>#Replace( Replace( System.getProperty( li ), ',', ', ', 'all' ), ';', '; ', 'all' )#</td>
</cfloop>
</table>
</cfoutput>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment