May 15
Sometimes we may change the default JVM for ColdFusion depending on our needs. This would be useful to get some new features etc. When we need to detect current JVM that we are using in ColdFusion server, we can check the ColdFusion Administrator settings page. But there is also another way of detecting via following code and it would be useful when you do not have any CF admin access on a shared platform etc.
<cfset CF_JVM = CreateObject("java", "java.lang.System").properties>
<cfoutput>
<cfloop collection="#CF_JVM#" item="loopid">
<strong>#loopid#</strong>: #CF_JVM[loopid]#<br />
</cfloop>
</cfoutput>
May 15, 2008 at 12:37 PM In econd scenario you will ot have probably access to createObject("java",...).