How to install custom Java class for ColdFusion 10

萝らか妹 提交于 2019-11-29 11:13:41

The only difference in CF10 is there is an extra directory layer between the {install root} and {web root}. ie

          coldfusion8\wwwroot
          coldfusion10\cfusion\wwwroot 

However, it does not change the rules about class loading. Jars can be placed anywhere, as long as they are accessible to the CF service, and the directory is in CF class path, or the default jvm class path.

There are several directories in the default class path that CF checks automatically, such as {cf_webroot}\web-inf\lib. The simplest option is to place them in that directory. Then CF will pick them up automatically, no need to muck with the class path settings. Just drop your jars in that folder, restart the CF service, and you are good to go.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!