更新时间: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.