Skip to main content
Inspiring
Feb 26, 2024 10:53 AM UTC
Answered

Java jars not working in CF2021

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 is closed to new replies. Start a new post to keep the conversation going.
    BKBK
    BKBKCorrect answer
    Community Expert
    Feb 26, 2024 2:12 PM UTC

     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.

    2 replies

    BKBK
    Community Expert
    BKBKCommunity ExpertCorrect answer
    Community Expert
    Feb 26, 2024 2:12 PM UTC

     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.

    Translate
    Inspiring
    Feb 27, 2024 7:14 AM UTC

    Thanks a lot @BKBK !

     

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

    Translate