Andy Jarrett // Code. Develop. Create.

find out whats on your CFML engines classpath

There are 2 snippets of code which should work for other CFML engines but I've only tested on Railo as I am trying to get to the bottom of a Jar issue.

To see whats on your classpath you get check the following system property

<cfset sys = CreateObject("java", "java.lang.System")><cfloop list="#sys.getProperty("java.class.path")#" index="i" delimiters=":"> <cfoutput>#i#</cfoutput>
</cfloop>

If you want to know even more about your system then its worth looking at the following dumping all the properties via:

<cfdump var="#sys.getProperties()#">

I’m here, learning and working away. If you liked this content and want to keep me going, consider buying me a coffee. Your support keeps this site running and the coffee brewing! ☕️