Fix class definition so we can require files first
Move initializer after constants and class methods
ghostscript: fix building with djvu support

Fix from @baikal.

Closes #27427
pmd 5.1.0

The compiled jars and documentation for PMD 5.1.0.
pmd: add 5.1.0 bottle.