开发者

how to run a java/bin command using java?

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)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜