Compile and run source code from Java application

前端 未结 5 2120
渐次进展
渐次进展 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:25

    You could use java.lang.ProcessBuilder to execute commands and check the status. Here JAVADOC : http://download.oracle.com/javase/1.5.0/docs/api/java/lang/ProcessBuilder.html

提交回复
热议问题