0

I am getting

JVMJ9VM148E java.endorsed.dirs="" is no longer supported. The endorsed-standards override mechanism is only supported via upgradable modules. Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit.

When trying to run a Java 11 program in IntelliJ 2019.3 This started happening after I updated my IntelliJ.

I have found this question on StackOverflow,: How do you replace endorsed directory in Java 9?

And also this: form IntelliJ, https://intellij-support.jetbrains.com/hc/en-us/community/posts/360000615010-IntelliJ-is-adding-a-no-longer-supported-Djava-endorsed-dirs-JDK-9-parameter-on-Gradle-runs-which-results-in-failure

but none apply to my situation.

Does anyone know ho I can solve this? Thanks in advance.

Naman
  • 27,789
  • 26
  • 218
  • 353
Laguh
  • 621
  • 2
  • 10
  • 23
  • 1
    When do you get this error, when building or when running? If you search the project for `java.endorsed.dirs`, does it find anything? Do you have environment variables set that may override Java options with `java.endorsed.dirs`? – CrazyCoder Mar 15 '20 at 00:28
  • Was this resolved? I just started to have the same issue today. – Sampaguita Aug 06 '20 at 10:42
  • It was fixed it was something stupid like the correct directory was not marked as root. now I don't remember to be honest. But it was something silly and not related to the error message I was receiving at all. :/ – Laguh Aug 13 '20 at 16:01

0 Answers0