The Practice and Philosophy of Object-Oriented Programming in Java
Phpstorm Jdk Not Found
How to Add JavaFX to an IntelliJ Project
Just downloaded an update with new version, and now I am unable to open IJ, seeing this message in a popup window. Cannot start under Java 1.8.0202-release-b1491: Java 11 or later is required. Download and unpack a JDK archive file (.tar.gz) and add it as a SDK in the 'Project Structure' dialog box (Ctrl + Alt + Shift + S) click on the gif to enlarge Make sure to set an appropriate ' Project language level ' as well. For Java 8 set it to 8, for Java 9 set it to 9, and so on.
This document assumes that you have already installed and set up Java and IntelliJ IDEA (if not, start here).If you are using Java 8, JavaFX is already bundled with your JDK so you do not need to take anyfurther steps. With the advent of Java 11 in 2018, however, JavaFX was removed from the JDK so that it could evolve at its own pace as an independent open-source project guided by Oracle and others in the OpenJFX community.
Step 1: Download JavaFX
- Download JavaFX. This is a zipped folder named
javafx-sdk(with version number appended). Unzip the folder and move it to a permanent location on your hard drive.
Step 2: Adding the JavaFX libraries to an IntelliJ project
If you create a new JavaFX application or open an existing one, you will notice compile-time errors in the editor: names of classes in the JavaFX API are not recognized. To fix this, you need to add the JavaFX libraries to the project. First, click on the File menu and select ProjectStructure. In the dialog that appears, select the Libraries tab and click the + icon to add a new Java library:

Find your javafx-sdk folder and select the lib subfolder:
Click the OK button to complete the process.
At this point, all compile-time errors have been resolved. If you try to run the application and a ClassNotFound exception is thrown, a fourth and final step, described next, will be needed.
Step 3: Editing the Project's Run Configuration
Note: This step may not be necessary. Try to run a JavaFX application after completing the first three steps. If you succeed, there is no need to edit your project's run configuration.
From the run menu, select editconfigurations. In the dialog that appears, you will see a field for VM options. You need to enter two options into this field with the following general form:
Instead of %PATH_TO_FX%, include the actual path to the JavaFX SDK lib directory. The path syntax will depend on your operating system. For the example illustrated in the preceding steps, the first VM option would be:
The quote marks are necessary since the name of one of the directories in the path contains a space.
The JavaFX SDK is partitioned into seven modules. Include a comma-separated list of the ones your project will need in place of %FX_MODULES_NEEDED%. For example:
Later you can add other modules if you need to, or remove some, by editing your run configuration again.
If the application does not run at this point, close and restart the IDE.
Phpstorm Key Free
For troubleshooting information, consult the JetBrains help page.
Return to Companion Site home pageThe source code of the IntelliJ project was recently migrated to Java 11. We still have some modules which are compiled to be compatible with older Java versions to support running users’ projects under these versions. However most of the platform and plugin modules use Java 11 now, and the upcoming 2020.3 versions of all IntelliJ-based IDEs will require Java 11 to start.
Phpstorm Keyboard Shortcuts
What does it mean for you? If you develop a plugin, you can use new language features and APIs from Java 11, but only if the since-build attribute in plugin.xml is set to 203. If your plugin distribution needs to run on multiple versions of the IDE, for example 202 and 203, then you should remain on Java 8.
If you want to compile the intellij-community project, you need to configure a JDK named corretto-11 pointing to an installation of JDK 11. It’s recommended to use Amazon Corretto JDK, but other distributions based on OpenJDK should work as well. You may download it directly from the Project Structure dialog. Note that there is no need to set up JDKs 1.8 and IDEA jdk anymore, corretto-11 is used to compile all the modules utilizing the cross-compilation feature for those which target older Java versions.
Phpstorm Diff
The IDEA run configuration which starts the IDE from sources now runs it under the JetBrains Runtime from the IntelliJ IDEA you’re working in. This way we ensure that IDE started from sources get improvements and fixes which are included into JetBrains Runtime but aren’t available in other OpenJDK-based distributions.
