Datadog throws "unable to load class path" on Lucee, not on CF2018

I got hit with the same / similar issues with createObject("java", ...) in Lucee 6.2.x via CommandBox just yesterday.

After lots of debugging, I traced it down to -Djava.io.tmpdir=E:/CommandBox/temp. I assume different versions of lib’s needed by code were placed here and conflicting with CommandBox’s versions.

The reason for this setting for us was that, in the past, our code would complain about not being able to access the default temp directory.

By changing the temp dir to a different location, accessible by Lucee, seems to have solved the issue for us.

Perhaps something similar for you? Also, I believe someone from team posted recently about this issue (maybe in Slack?) being related to Java 21 changes.

1 Like