Asked the YUI project to help figure this out:
https://sourceforge.net/tracker/index.php?func=detail&aid=2184760&group_id=165715&atid=836476

-- 
openjdk cannot run yui compressor
https://bugs.launchpad.net/bugs/287035
You received this bug notification because you are a member of OpenJDK,
which is subscribed to openjdk-6 in ubuntu.

Status in “openjdk-6” source package in Ubuntu: New

Bug description:
Get the YUI Compressor from http://www.julienlecomte.net/yuicompressor/ (I've 
tested against 2.3.5 and 2.3.6 - both fail).

Extract the zip, cd to the "build" directory. Create a text file named 
"test.js" and put some valid javascript in there (I just put in one line that 
says "alert('test');").

Run:
java -jar yuicompressor-2.3.6.jar test.js

With Sun Java, no error is reported and it works.
With OpenJDK build 1.6.0_0-b11 (which is in Hardy Updates), no error is 
reported, and it works fine.
With OpenJDK build 1.6.0_0-b12 (which is in Intrepid Main), you get this error:
Exception in thread "main" java.lang.RuntimeException
        at 
com.yahoo.platform.yui.compressor.JavaScriptCompressor.printSourceNumber(JavaScriptCompressor.java:299)
        at 
com.yahoo.platform.yui.compressor.JavaScriptCompressor.parse(JavaScriptCompressor.java:335)
        at 
com.yahoo.platform.yui.compressor.JavaScriptCompressor.<init>(JavaScriptCompressor.java:532)
        at 
com.yahoo.platform.yui.compressor.YUICompressor.main(YUICompressor.java:120)

_______________________________________________
Mailing list: https://launchpad.net/~openjdk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openjdk
More help   : https://help.launchpad.net/ListHelp

Reply via email to