且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

错误:java:无法运行程序CreateProcess错误= 2,系统找不到指定的文件

更新时间:2023-01-25 23:12:24

IDEA不必使用JAVA_HOME变量.在项目设置中设置项目SDK(在您的情况下为JDK):文件->项目结构,在项目SDK中设置正确的路径.

IDEA doesn't necessary use JAVA_HOME variable. The project SDK (JDK in your case) is setup in the project settings: File -> Project Structure, Project SDK and set up the proper path there.