Version 2.4.8: "java.lang.NoSuchFieldError: instance" exception when minifying JS files

113 views
Skip to first unread message

MSB 092669

unread,
Jun 15, 2016, 9:32:29 PM6/15/16
to yuicompressor
I'm not sure what's causing this problem but when I try to use Ant to minify JavaScript files I keep getting the following exception:

java.lang.NoSuchFieldError: instance
    at org.mozilla.javascript.CompilerEnvirons.<init>(CompilerEnvirons.java:48)
    at com.yahoo.platform.yui.compressor.JavaScriptCompressor.parse(JavaScriptCompressor.java:310)
    at com.yahoo.platform.yui.compressor.JavaScriptCompressor.<init>(JavaScriptCompressor.java:533)
    at com.yahoo.platform.yui.compressor.YUICompressTask.doCompression(YUICompressTask.java:202)
    at com.yahoo.platform.yui.compressor.YUICompressTask.execute(YUICompressTask.java:101)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)

When I look inside the yuicompressor-2.4.8.jar it looks like the class DefaultErrorReporter.java is empty.

Do I have a corrupted JAR file or could there be some other problem?
Reply all
Reply to author
Forward
0 new messages