我正在使用 ColdFusion8、Windows7 64 位操作系统,并且我已经从ColdBox下载了 Wirebox 1.6 。我已提取文件并将它们放入wwwroot
并使用以下代码创建了一个“index.cfm”页面:
<cfscript>
wirebox = createObject("component","wirebox.system.ioc.Injector").init();
</cfscript>
<cfdump var="#wirebox#">
但它抛出一个错误:
Invalid CFML construct found on line 43 at column 36. ColdFusion was looking at the following text: { The CFML compiler was processing: A script statement beginning with instance on line 43, column 25. A cfscript tag beginning on line 33, column 18. A cfscript tag beginning on line 33, column 18. The error occurred in C:\ColdFusion8\wwwroot\wirebox\system\ioc\Injector.cfc: line 43 41 : 42 : // Prepare Injector instance 43 : instance = { 44 : // Java System 45 : javaSystem = createObject('java','java.lang.System'),
如何正确安装并测试安装?