简体   繁体   English

如何在IntelliJ IDEA 13.1中创建Java 8项目?

[英]How to create Java 8 project in IntelliJ IDEA 13.1?

I want to try IntelliJ IDEA 13.1, so I've installed the enterprise edition for evaluation. 我想尝试IntelliJ IDEA 13.1,所以我安装了企业版进行评估。 Also, I have installed JDK8u11 64 bit. 另外,我已经安装了JDK8u11 64位。 I am using Windows 8.1. 我使用的是Windows 8.1。

When I try to create new project, I need to select JDK. 当我尝试创建新项目时,我需要选择JDK。 I am able to choose JDK7, but JDK8 is not accepted with message "The selected directory is not a valid home for JDK". 我可以选择JDK7,但不接受JDK8消息“所选目录不是JDK的有效主页”。

错误窗口

Based on "The selected directory is not a valid home for JDK" Android Studio I've set JAVA_HOME to point to C:\\Software\\Java\\jdk1.8.0 where JDK8u11 is installed, with no effect. 基于“所选目录不是JDK的有效主页”Android Studio我已将JAVA_HOME设置为指向安装了JDK8u11的C:\\ Software \\ Java \\ jdk1.8.0,但没有任何效果。 I have also run IntelliJ IDEA in Administrator mode, without success. 我也在管理员模式下运行IntelliJ IDEA,但没有成功。

I'm a bit stuck here. 我有点卡在这里。 Am I missing something? 我错过了什么吗?

A copy of my answer in the comments so that @tptak can graciously give me credit for the correct answer. 我在评论中的答案副本,以便@tptak可以慷慨地给我正确的答案。 Thanks. 谢谢。

Make sure the dir you select has the bin , jre and lib directories. 确保您选择的目录具有binjrelib目录。 Could you have a double jdk1.8.0 dir name (or some such thing) from an error when setting the install dir during install? 在安装期间设置安装目录时,您是否可以从错误中获得双重jdk1.8.0目录名称(或某些此类内容)?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在 Intellij IDEA 13.1 中使用 Maven 结构创建 Spring MVC 应用程序? - How to create Spring MVC application with Maven structure in Intellij IDEA 13.1? Intellij IDEA 13.1中的Java编译错误 - Java compile error in Intellij IDEA 13.1 如何使用intellij IDEA使用gradle项目创建Java servlet - how to create a java servlet with a gradle project using intellij IDEA Intellij Idea 13.1如何检查正在运行的应用程序的VM选项 - Intellij idea 13.1 how to check VM option for a running application 如何在IntelliJ IDEA中创建一个JavaFX Maven项目? - How to create a JavaFX Maven project in IntelliJ IDEA? 如何在Intellij Idea中组织大型Java项目 - How to organize a large java project in Intellij Idea 在Intellij / idea的Cucumber / Java项目中创建可执行JAR - Create executable JAR in Cucumber/Java project in Intellij/idea 无法在 IntelliJ IDEA 13 社区版中创建 java 项目 - Can't create java project in IntelliJ IDEA 13 Community Edition 在IntelliJ Idea中的android项目中创建Java模块 - Create java module inside android project in IntelliJ Idea 如何创建游戏! 使用JetBrains IntelliJ Idea 13的框架JAVA应用程序? 我只找到了Scala项目 - How to create Play! Framework JAVA application with JetBrains IntelliJ Idea 13? I only find the Scala project
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM