Added ability to compile jar while using scala code.