不能为 Go 游戏的服务器放置机器人
Can not put a bot for the server of the game Go
我无法为围棋游戏的服务器添加bot
我收到这个错误
kl@ox:~/kgsBot/kgsGtp$ java -jar kgsGtp.jar pachi.config
Picked up JAVA_TOOL_OPTIONS: -javaagent:/usr/share/java/jayatanaag.jar
sep 15, 2015 2:01:09 AM com.gokgs.client.gtp.GtpClient main
FINE: KGS GTP Client v3.5.20 starting up
sep 15, 2015 2:01:10 AM com.gokgs.client.gtp.GtpClient main
SEVERE: Fatal exception
java.io.IOException: Cannot run program "./pachi": error=13, Permission denied
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
at java.lang.Runtime.exec(Runtime.java:620)
at java.lang.Runtime.exec(Runtime.java:450)
at java.lang.Runtime.exec(Runtime.java:347)
at com.gokgs.client.gtp.GtpClient.main(kgsgtp:918)
Caused by: java.io.IOException: error=13, Permission denied
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.<init>(UNIXProcess.java:248)
at java.lang.ProcessImpl.start(ProcessImpl.java:134)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
... 4 more
有什么问题吗?
根据您的堆栈跟踪,
java.io.IOException: Cannot run program "./pachi": error=13, Permission denied
Error=13
表示您没有该文件的执行权限。找出 pachi
文件在哪里使用 find -name pachi
并添加 chmod
的执行权限
我无法为围棋游戏的服务器添加bot
我收到这个错误
kl@ox:~/kgsBot/kgsGtp$ java -jar kgsGtp.jar pachi.config
Picked up JAVA_TOOL_OPTIONS: -javaagent:/usr/share/java/jayatanaag.jar
sep 15, 2015 2:01:09 AM com.gokgs.client.gtp.GtpClient main
FINE: KGS GTP Client v3.5.20 starting up
sep 15, 2015 2:01:10 AM com.gokgs.client.gtp.GtpClient main
SEVERE: Fatal exception
java.io.IOException: Cannot run program "./pachi": error=13, Permission denied
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
at java.lang.Runtime.exec(Runtime.java:620)
at java.lang.Runtime.exec(Runtime.java:450)
at java.lang.Runtime.exec(Runtime.java:347)
at com.gokgs.client.gtp.GtpClient.main(kgsgtp:918)
Caused by: java.io.IOException: error=13, Permission denied
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.<init>(UNIXProcess.java:248)
at java.lang.ProcessImpl.start(ProcessImpl.java:134)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
... 4 more
有什么问题吗?
根据您的堆栈跟踪,
java.io.IOException: Cannot run program "./pachi": error=13, Permission denied
Error=13
表示您没有该文件的执行权限。找出 pachi
文件在哪里使用 find -name pachi
并添加 chmod