After again spending time to fix issues resulting from a collision of the yuicompressor jar and the normal rhino jar in one of my projects, I came up with a more radical solution:
- Download the source codes from yuicompressor and the corresponding rhino release
- Replace every occurance of “mozilla” with “yuizilla”
So now I have a version of the yuicompressor that works fine and does not conflict with the rhino version I also have in my project. And I don’t need any stupid jar class loaders or have to write stdin/stdout handling for some terribly slow external yuicompressor process. I can just use the classes
and be done with it. Hurray for fast dynamic server-side script and style compression!