Compile kotlin source dynamically

I want to embed kotlin compiler in android app.
I have tried using K2JVMCompiler but crashes as it tries to access javax.(javax not supported in android)
Is there any other api that I can use to compile and communicate with compiler using standard I/O?