I need to compile and run source code (single file), written in Python, Pascal or C, from my Java application.
I will need to know:
If you're mainly doing code snippets you might try running Python code using Jython. See Howto multithreaded jython scripts running from java? for details.