How to compile java code submitted through a webpage
<p>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. </p>

<p>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.    </p>
