Project sdk is not defined intellij idea что делать
Project sdk is not defined intellij idea что делать
Здравствуйте, Аноним, Вы писали:
А>Добрый день. Решил попробовать IDEA. Создал какой то простенький проект, но пишет на main классе: Project SDK is not defined. Нажимаю Setup SDK, пытаюсь добавить путь /usr/java/jdk1.7.0_21 — пишет The selected directory is not valid home for JDK. пробовал и так: /usr/java/jdk1.7.0_21/bin и т.п. ну никак не получается прописать SDK. Что я делают не так?
По идее должен быть /usr/java/jdk1.7.0_21 Там точно есть JDK?
От: | Аноним | |
Дата: | 11.05.13 07:46 | |
Оценка: |
Здравствуйте, Аноним, Вы писали:
А>Здравствуйте, Аноним, Вы писали:
А>>Добрый день. Решил попробовать IDEA. Создал какой то простенький проект, но пишет на main классе: Project SDK is not defined. Нажимаю Setup SDK, пытаюсь добавить путь /usr/java/jdk1.7.0_21 — пишет The selected directory is not valid home for JDK. пробовал и так: /usr/java/jdk1.7.0_21/bin и т.п. ну никак не получается прописать SDK. Что я делают не так?
А>По идее должен быть /usr/java/jdk1.7.0_21 Там точно есть JDK?
да, руками смотрел, есть.
От: | avpavlov | |
Дата: | 11.05.13 08:56 | |
Оценка: |
А>да, руками смотрел, есть.
Может там случайно JRE оказалась вместо JDK?
От: | Аноним | |
Дата: | 11.05.13 13:11 | |
Оценка: |
Здравствуйте, avpavlov, Вы писали:
А>>да, руками смотрел, есть.
A>Может там случайно JRE оказалась вместо JDK?
да не, именно JDK установил через apt-get:
# sudo add-apt-repository ppa:webupd8team/java
# sudo apt-get update && sudo apt-get install oracle-jdk7-installer
От: | LeonidV | http://vygovskiy.com | |
Дата: | 11.05.13 15:04 | ||
Оценка: |
От: | avpavlov | |
Дата: | 11.05.13 15:57 | |
Оценка: |
А># sudo add-apt-repository ppa:webupd8team/java
А># sudo apt-get update && sudo apt-get install oracle-jdk7-installer
От: | Аноним | |
Дата: | 11.05.13 19:22 | |
Оценка: |
Здравствуйте, LeonidV, Вы писали:
LV>/usr/lib/jvm/java-7-oracle/ попробуйте так.
Project sdk is not defined intellij idea что делать
Generally, SDKs are global. It means that one SDK can be used in multiple projects and modules. After you create a new project and define an SDK for it, you can configure modules in this project to inherit its SDK. You can also specify an SDK for each module individually. For more information, refer to Change module SDK.
Supported SDKs
Define an SDK
Configure global SDKs
Set up a project SDK
If the necessary SDK is already defined in IntelliJ IDEA, select it from the Project SDK list.
Set up a module SDK
If the necessary SDK is already defined in IntelliJ IDEA, select it from the Module SDK list.
If you want a module to inherit a project SDK, select the Project SDK option from the Module SDK list.
Java Development Kit (JDK)
To develop applications in IntelliJ IDEA, you need a Java SDK (JDK). A JDK is a software package that contains libraries, tools for developing and testing Java applications (development tools), and tools for running applications on the Java platform (Java Runtime Environment — JRE).
The JRE can be obtained separately from the JDK, but it’s not suitable for application development, as it doesn’t have essential components such as compilers and debuggers.
The bundled JRE is used for running the IDE itself, and it’s not sufficient for developing Java applications. Before you start developing in Java, download and install a standalone JDK build.
Due to the changes in the Oracle Java License, you might not have the rights to use Oracle’s Java SE for free. We recommend that you use one of the OpenJDK builds to avoid potential compliance failures.
In IntelliJ IDEA, you can download a JDK package right from the IDE, or you can manually download the necessary JDK distribution and define it in the IDE.
For a manual download, use any available distribution that you like, for example:
If you don’t know which distribution to choose, and you don’t have specific requirements that instruct you to use one of the existing distributions, use Oracle OpenJDK.
Set up the project JDK
If the necessary JDK is already defined in IntelliJ IDEA, select it from the Project SDK list.
Apply the changes and close the dialog.
If you build your project with Maven or Gradle, refer to Change the JDK version in a Maven project and Gradle JVM selection respectively for more information on how to work with JDKs.
Configure SDK documentation
You can add SDK documentation to IntelliJ IDEA so that you can get information about symbols and method signatures right from the editor in the Quick documentation popup.
You can also configure external documentation by specifying the path to the reference information online. External documentation opens the necessary information in a browser so that you can navigate to related symbols and keep the information for further reference at the same time.
Specify SDK documentation paths
To view external SDK documentation, configure the documentation URL first.
Select the necessary SDK version if you have several SDKs configured, and open the Documentation Path tab on the right.
Apply the changes and close the dialog.
Access SDK documentation offline
If you work offline, you can view external documentation locally.
Download the documentation package of the necessary version.
The documentation package is normally distributed in a ZIP archive that you need to unpack once it is downloaded.
For example, you can download the official Java SE Development Kit 14.0.1 Documentation and unzip it.
Select the necessary JDK version if you have several JDKs configured, and open the Documentation Path tab on the right.
Apply the changes and close the dialog.
When the documentation is configured, you can open it in the editor.