How to run a batch script (.bat file) from eclipse

后端 未结 4 1480
天命终不由人
天命终不由人 2020-12-01 11:54

My Java application is started by running a set of commands that are present in a batch file (.bat file). And I imported this into Eclipse workbench. How do I execute the ba

4条回答
  •  南方客
    南方客 (楼主)
    2020-12-01 12:19

    Or, you could create an Ant build file, which can call external applications.

    This will give you the advantage to call the .bat not only from Eclipse, but other IDE's, or from command line (on any machine).

    http://ant.apache.org/manual/Tasks/exec.html

提交回复
热议问题