All paths are absolute, the JAVA_HOME is not needed, as we pass the full qualified path to the java binary.
Here is dump of the command and the result of running ".CombinedOutput()" on the command. If I copy the command and run in on the shell, everything works fine.
2012/04/18 10:33:15 &{/usr/bin/java [/usr/bin/java -jar /home/mmueller/Development/Checkouts/project/php/legacy/admin/scripts/yui-compressor.jar -o .js$:.js /home/mmueller/Development/Checkouts/project/php/legacy/javascript/_statics/fi/*.js] [] <nil> java.io.FileNotFoundException: /home/mmueller/Development/Checkouts/project/php/legacy/javascript/_statics/fi/*.js (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:138)
at java.io.FileInputStream.<init>(FileInputStream.java:97)
at com.yahoo.platform.yui.compressor.YUICompressor.main(YUICompressor.java:118)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at com.yahoo.platform.yui.compressor.Bootstrap.main(Bootstrap.java:21)
java.io.FileNotFoundException: /home/mmueller/Development/Checkouts/project/php/legacy/javascript/_statics/fi/*.js (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:138)
at java.io.FileInputStream.<init>(FileInputStream.java:97)
at com.yahoo.platform.yui.compressor.YUICompressor.main(YUICompressor.java:118)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at com.yahoo.platform.yui.compressor.Bootstrap.main(Bootstrap.java:21)