I'm trying to create an application similar to an online judge, but all I want is that after submitting a java file through an html page or jsp, the application runs a certain JUnit test case in that java file and shows the results in a new page. I'm having trouble figuring out the best way to do this, since I know that we can run JUnit tests in java files that are already inside the project, but I do not know how to do it in a java file that is to be submitted in the database. application. Does anyone know of anything that can help me?