Ensure that Rhino 1.6R7 or later is used rather than the default Rhino on Java 1.6 which does not support E4X.