Compile and run source code from Java application

前端 未结 5 2126
渐次进展
渐次进展 2021-02-10 02:05

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 compile process was
5条回答
  •  青春惊慌失措
    2021-02-10 02:24

    You're probably going to want to use Runtime.exec() to call the respective compiler. Check out the JavaDoc for more information about how to deal with the output, etc.

提交回复
热议问题