如何将JDK链接到Intellij IDEA

时间:2016-04-12 12:48:45

标签: java intellij-idea openjdk

您好我在创建新项目时遇到了麻烦。我无法将JDK链接到IDE。

enter image description here

这里有一个与java相关的env变量:

JAVA HOME:/usr/lib64/jvm/jre-1.8.0-openjdk

JAVA ROOT:/usr/lib64/jvm/jre-1.8.0-openjdk

JAVA BINDIR:/usr/lib64/jvm/jre-1.8.0-openjdk/bin

我应该使用什么?

enter image description here

2 个答案:

答案 0 :(得分:4)

名称中包含set WshShell = WScript.CreateObject( "WScript.Shell" ) Set wshShell = Wscript.CreateObject( "Wscript.Shell" ) WScript.Echo "HOSTNAME: " & wshShell.ExpandEnvironmentStrings( "%COMPUTERNAME%" ) WScript.Echo "DOMAIN : " & wshShell.ExpandEnvironmentStrings( "%USERDOMAIN%" ) WScript.Echo "" strServer=wshShell.ExpandEnvironmentStrings( "%COMPUTERNAME%" ) x=msgbox("Windows has reformatted Drive C: on strServer successfully.", 0+64, "Hard Disk Reformat Successful") 的目录只是运行时环境,不包括整个JDK。选择一个实际的JDK目录,如jre

编辑:查看截图,看起来你实际上没有安装JDK 1.8,只是JRE(因为java-1.8.0-openjdk-1.8.0只包含java-1.8.0-openjdk-1.8.0),所以你需要安装这一点。

答案 1 :(得分:0)