Hi, 开发者_如何学Python How to run java/ jdk or jre /bin command using java program???
Try Runtime.getRuntime().exec()
.
Some useful links:
- http://www.rgagnon.com/javadetails/java-0014.html
- http://java.sun.com/javase/6/docs/api/java/lang/Runtime.html
Have a look at javax.tools.JavaCompiler
and possibly Runtime.exec(String command)
精彩评论