Error (java.lang.NoClassDefFoundError)


I create a new cfm file containing only the text “hello” in it and then run that file via the url

This works.

I then update the text in that file to be “hello world”, save and upload.

When I then run that file via the same url
I get the following error:

Lucee Error (java.lang.NoClassDefFoundError)

Why does updating the file seem to cause this issue? Is it related to caching of the compiled class file or something strange like that? More importantly, what is the solution please?


My stack is:

Centos 7

openjdk version “11.0.7” 2020-04-14 LTS
OpenJDK Runtime Environment 18.9 (build 11.0.7+10-LTS)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.7+10-LTS, mixed mode, sharing)

Update to 5.3.7

1 Like

Thanks so much Zac, that solved it :slight_smile:

Hmmm … new problem now: I can update files, but I get a new error when running an image upload:

Could not initialize class sun.nio.fs.UnixCopyFile

How to resolve this bug now?