java Firefox被PID“杀死”后拒绝启动
我已经通过taskkill使用PID以编程方式关闭了Firefox浏览器:
Runtime.getRuntime().exec("taskkill /F /T /PID " + pid);
现在,当我再次尝试打开Firefox时,我正在显示以下消息:
Firefox closed unexpectedly while starting. This might be caused by add-ons or other problems..
选择Refresh
或Run in Safe Mode
有没有一种方法可以杀死/关闭Firefox浏览器,而每次都不会遇到上述问题?我需要能够使用PID以编程方式关闭/杀死Firefox[Java]
谢谢
对于那些请求的人,我正在Windows 10上运行FF,FF版本77.0.1 64位
共 (0) 个答案