I wanted to make a Java tutorial website for my final year project. The website would ask the user a question and they would write the java code into a form.
What I cant figure out is how to compile the code that has been submitted. Should I write my own test cases in PHP or is there a way to get a java compiler that will run on a web host like hostmonster? Any suggestions welcome.
Have a look at the JavaCompiler class:
The above compiles a
Stringcontaining Java source and executes itfor more see: JavaCompiler Turorials – Java2s