Skip to main content
Inspiring
February 26, 2024
Answered

Java jars not working in CF2021

  • February 26, 2024
  • 1 reply
  • 235 views

Hello All,

We recently migrated to CF2021 in last week in Production and we are facing major issue with all Java jars. Jars are in CF2021/jre/lib folder but still we are facing hard errors on createObject function.
Whenever CF trying to create Java Object using createObject function, it's giving classnotfound exception on that java object.

If anyone faced this issue before please comment here. We will really appreciate your help!

Thanks in advance!

    This topic has been closed for replies.
    Correct answer BKBK

     CF2021/jre/lib is probably the wrong location.

    Java JARS to be used by ColdFusion should be in a lib directory within the ColdFusion instance. Typically, in {CF2021_HOME}/cfusion/lib or {CF2021_HOME}/myCFInstance/lib.

    1 reply

    BKBK
    Community Expert
    BKBKCommunity ExpertCorrect answer
    Community Expert
    February 26, 2024

     CF2021/jre/lib is probably the wrong location.

    Java JARS to be used by ColdFusion should be in a lib directory within the ColdFusion instance. Typically, in {CF2021_HOME}/cfusion/lib or {CF2021_HOME}/myCFInstance/lib.

    Inspiring
    February 27, 2024

    Thanks a lot @BKBK !

     

    some jars were missing in cfusion/lib folder. After I added them, impacted flows worked fine.