[Solved] How to execute a .bat file with java program? [closed]

[ad_1]

bat files cannot be converted directly to jar files.

But you can implement bat file logic in a java application, using, for instance Apache Commons Exec and when it is compiled, package it as a jar file.

1

[ad_2]

solved How to execute a .bat file with java program? [closed]