You must set $jarFile and $tempDir before calling the minify functions.
Also, depending on your shell's environment, you may need to specify
the full path to java in $javaExecutable or use putenv() to setup the
Java environment.
Minify_YUICompressor::$jarFile = '/path/to/yuicompressor-2.4.6.jar';
Minify_YUICompressor::$tempDir = '/tmp';
$code = Minify_YUICompressor::minifyJs(
$code
,array('nomunge' => true, 'line-break' => 1000)
);
Note: In case you run out stack (default is 512k), you may increase stack size in $options:
array('stack-size' => '2048k')