user125264
user125264

Reputation: 1827

How to install custom Java class for ColdFusion 10

We have just deployed CF 10 onto some new servers.

I'm trying to follow this process, which we had working without any issues on CF8. However I'm not sure how things are structured in CF10.

Our directory path in CF 10 appears as:

Coldfusion10\
   cfusion
   jre
   ininstall

Do all the additional Java classes get installed into jre?

Upvotes: 4

Views: 442

Answers (1)

Leigh
Leigh

Reputation: 28873

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.

Upvotes: 5

Related Questions