Programmatic scala compilation throw 'object scala in compiler mirror' error

How are you building/compiling this exactly?