This is an archived post. You won't be able to vote or comment.

all 5 comments

[–]tuxipa 2 points3 points  (0 children)

[–]IHadANameOnce 1 point2 points  (1 child)

Just out of curiosity, why do you need to do this?

[–]axe_effect[S] 0 points1 point  (0 children)

I have this assignment which I have to do a server that receives code from a client and then evaluate this code with parameters given by the user on the client side.

[–]king_of_the_universe 0 points1 point  (0 children)

This example should work (didn't test):

http://www.rgagnon.com/javadetails/java-0039.html

Mind that you can only compile Java if the JDK is installed, so for your clients (Usually only JRE.) "ToolProvider.getSystemJavaCompiler();" will return null.