How to get java getRuntime().exec() to run a command-line program with arguments?

后端 未结 4 1741
一生所求
一生所求 2020-12-14 21:34

I\'ve been trying to write a java program that uses the Runtime.getRuntime().exec() method to use the command-line to run an instance of the program \"tesseract

4条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-14 22:06

    another workaround is give complete installation path of file like /usr/local/Cellar/tesseract/3.02.02/bin/tesseract"

提交回复
热议问题