- Save code in file.
- Get it’s absolute Path.
- Use
Process myProcess = Runtime.getRuntime().exec(command);
to
compile and run your code. - You can also redirect Errors/Warnings to diff files.
solved How to run an application in an interface? [closed]
Process myProcess = Runtime.getRuntime().exec(command);
to
solved How to run an application in an interface? [closed]