IDEA 运行java程序报cannot start process,the working directory ‘********’ does not exist! 先配JDK版本、再搞程序运行配置

打开idea,点击file->Project Structure,然后project、Modules、Libraries等模块配置你需要的JDK版本

IDEA 运行java程序报cannot start process,the working directory ‘********’ does not exist! 先配JDK版本、再搞程序运行配置

 

 

程序的运行的配置先来看一下,在运行程序时如不做相关配置,程序将报错!目录是你的文件的存储位置!

Warning: Working directory 'E:\commonproblem/commonproblem' doesn't exist

IDEA 运行java程序报cannot start process,the working directory ‘********’ does not exist! 先配JDK版本、再搞程序运行配置

IDEA 运行java程序报cannot start process,the working directory ‘********’ does not exist! 先配JDK版本、再搞程序运行配置

配置项目的路径或者配置候选值 含有main方法的程序

Edit configuration ——> $MODULE_DIR$ ——> apply ——> OK

IDEA 运行java程序报cannot start process,the working directory ‘********’ does not exist! 先配JDK版本、再搞程序运行配置

 

 

IDEA 运行java程序报cannot start process,the working directory ‘********’ does not exist! 先配JDK版本、再搞程序运行配置

 

配置完成后,再次运行OK

IDEA 运行java程序报cannot start process,the working directory ‘********’ does not exist! 先配JDK版本、再搞程序运行配置