Dynamically Compile Java code from String and return output from webservice!

IN PROGRESS
Bids
3
Avg Bid (USD)
$58
Project Budget (USD)
$50 - $100

Project Description:
Requirements: Sandbox solution to compile and run java code from students. The solution should have an option to limit harmful functions like deleting files, accessing network, or endless loops. It needs to be running on separate JVM since we do not want students to crash the system intentionally or unintentionally. Input string will be coming from interface similar to this website http://rextester.com/runcode . I believe this uses http://codemirror.net/ for code editing.

Environment: The program can be developed in any way you like but must be deployed on Heroku platform. Only this way I can assure that program is working correctly. It should be able to call Webservice from any other platform.

Input: String of Java code from a web service. It could be snippets (or) entire java class as a string.
Output: Return compiler message as a string when the compilation fails: return (0, compiler_err_msg). If there is no compile error and program runs successfully: return(1, return_value). Return value could be integer, string, base on how the original code as defined. Prefer to return data as Json.

Example code:

// returns what was printed on the console
class HelloWorld {
public static void main(String[] args)
{
System.out.println("Hello World!");
System.out.println(sum(2,3));
}
public static int sum(int a, int b)
{
return a + b;
}
}


// returns integer
class HelloWorld {
public static void main(String[] args)
{
return multiply(10, 20);
}
public static int multiply(int a, int b)
{
return a * b;
}
}

Skills required:
J2EE, Java, JSP, Software Architecture, webMethods
About the employer:
Verified
Public Clarification Board
Bids are hidden by the project creator. Log in as the employer to view bids or to bid on this project.
You will not be able to bid on this project if you are not qualified in one of the job categories. To see your qualifications click here.


Hire swteam4
$ 75
in 3 days
Hire javierdurante
$ 50
in 1 days
$ 50
in 2 days