Project jdk is not defined что это
«Project jdk is not defined» in an IntelliJ’s 2016.3 JavaScript Project
After update to IntelliJ IDEA 2016.3 I get the warning: «project jdk is not defined» in a JavaScript/Node/React project. Have I overseen something? How to solve it? Under «Setup JDK» link I cannot find any notes that fit.
1 Answer 1
This is a known issue with the Scala Plugin for IntelliJ IDEA, see this issue on the JetBrains bug tracker: https://youtrack.jetbrains.com/issue/SCL-11105
Quoting from the bug report:
After upgrading to 2016.3 Ultimate, the editor windows show a yellow bar at the top that says «Project JDK is not defined» with a link to «Setup JDK» on my non-Java project. I don’t want a JDK associated with this project because it’s not a Java project. It’s a small Docker project with Git version control. Please turn the message off.
It turns out that the issue is related to the Scala plug-in. (. ) I can confirm that disabling the Scala plugin made the error vanish.
If you don’t want to disable the Scala plugin, as a workaround you can set up the project’s SDK (even though it is not a Java project) by going to the project settings menu (File ⃗ Project Structure ⃗ Project) and selecting any SDK in the project SDK dropdown.
The bug ticket has been resolved, so the problem should not exist anymore if you have a recent version of IDEA and the Scala plugin.
Project jdk is not defined что это
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.