How to compile List of PsiJavaFile's
Hi. I am playing with kotlin-web-demo and trying to add Java exercises to it. I have List of PsiJavaFile's. What is the API that I should use to compile them ?
I need to get back bytecode files and main class name in order to run it after that.
Thanks.
Please sign in to leave a comment.
Hi Alex,
do you mean you want to invoke a java compiler from your code? Then please specify the context in which the code is executed: is this an IDEA plugin or a standalone program?
It's a backend for https://github.com/JetBrains/kotlin-web-demo