Runtime rt = Runtime.getRuntime();
String url ="https://movie.douban.com/subject/1292052/";
Process p = rt.exec("phantomjs.exe D:/yy/codes.js"+url);
运行报错找不到指定的文件。但是路径确认是对的啊,怎么回事?是用配置path路径吗?
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
d:/yy/code.js 和 引号之间要有空格吧