JBCefApp.isSupported() causes null pointer exception


Exception in thread "main" java.lang.NullPointerException
at com.intellij.application.options.RegistryManager.getInstance(RegistryManager.java:10)
at com.intellij.ui.jcef.JBCefApp.isSupported(JBCefApp.java:165)
at com.intellij.ui.jcef.JBCefApp.isSupported(JBCefApp.java:146)

JBCefApp.isSupported() does not return a boolean. It throws a NPE. I have followed this link: https://jetbrains.org/intellij/sdk/docs/reference_guide/jcef.html

and in Project Structure the 'Project DDK" is IntelliJ IDEA IU-202.6948 java version 11.0.8 and the "Project language level" is 11-Local variable syntax for lambda parameters. Modules setting for Language level is also the same 11-local variable..... In the link above it says that "IDE started in a alternative OpenJDK" How can I control which jdk does the IDE opens at? I have jdk1 versions 8, 9 & 13 installed on my computer.

Please sign in to leave a comment.