天天看點

IDEA:cannot start process,the working directory ‘***‘ does not exist

在idea中報錯Cannot start process, the working directory ‘***’ does not exist。

雖然反複看自己的路徑,檔案名等都沒有問題,但是點選運作就出錯。

報錯原因是:idea沒有工作空間這個概念,是以在建立工程的時候指定的工作區間,idea無法找到對應的工程,導緻編譯不通過。我們要設定一下,idea才會識别到你的工程位置。

1.點選RUN,選中edit configurations

IDEA:cannot start process,the working directory ‘***‘ does not exist

2.然後,找到我們的工作目錄,working directory,把他改成$MODULE_DIR $

IDEA:cannot start process,the working directory ‘***‘ does not exist

3.然後再點選運作就可以了