I am trying to get some info on the internal of my ColdFusion site
struct function get_site_info() output="false" {
var oSystem = createObject('java','java.lang.System');
var jremodel = oSystem.getProperty("sun.arch.data.model");
var jrename = oSystem.getProperty("sun.runtime.name");
var jreversion = oSystem.getProperty("sun.runtime.version");
var stResult = {CFVERSION = server.ColdFusion.ProductVersion,
CFLEVEL = server.ColdFusion.ProductLevel,
JRENAME = jrename, // Error happens here
JREVERSION = jreversion };
return stResult;
}
The error message is
Variable JRENAME is undefined.