初学IDEA遇到Error running 'B': Cannot start process, the working directory 'F:\demo\demo' does not exist

 1 问题描述:
      新建main方法, 在控制台选择run时出现Error running 'B': Cannot start process, the working directory 'F:\demo\demo' does not exist, 如下图

2 解决办法:

2.1 选择IDEA右上角的Edit Configurations

2.2 把Working directory 对应的输入框里的内容去掉或者选择$MONDULE_DIR$

2.3 然后Apply --> OK, 再次运行就没问题了

猜你喜欢

转载自blog.csdn.net/admin_Object/article/details/81873834
今日推荐