【Cannot start process,the working directory "文件路径" does not exist】错误解决方案1

错误分析:

根据错误信息提示来看报错原因是路径不存在,所以在运行的时候找不到这个文件,但是项目本身编译并没什么问题,这个时候我们查看Run/Debug Configurations发现如下问题:

【Cannot start process,the working directory "文件路径" does not exist】错误解决方案1

Class处报红,说明找不见这个路径,Use classpath of module处并没有选中要执行的module,看到这里可能很多小伙伴就知道问题出在哪里了,原来是我们的运行是module没有配置,导致运行时候找不到要执行的文件。这个时候我们在Use classpath of module选项处的下拉框中找到我们的module并应用再执行,然后问题就解决了。

相关文章:

  • 2021-07-09
  • 2021-05-06
  • 2021-11-18
  • 2021-12-24
  • 2021-04-26
  • 2021-07-04
  • 2021-05-02
猜你喜欢
  • 2021-04-26
  • 2021-08-26
  • 2021-10-09
  • 2021-08-12
  • 2021-07-13
  • 2021-09-13
相关资源
相似解决方案