5

I wanted to debug my project under Open JDK 11, so I tried to switch boot jdk to the OpenJDK11 path. I am using the community version on Windows 10. The suggested restart didn't happen, I only got the following error: JDK needed

How can I reset the boot jdk without Intellij starting?

Thanks in advance and kind regards

artie
  • 101
  • 1
  • 4

3 Answers3

1

The IntelliJ Advanced Configuration docs say the configuration directory on windows is:

Syntax

%HOMEPATH%\.<product><version>\config 

Example

C:\Users\JohnS\.IntelliJIdea2019.3\config 

Then, just delete the studio.jdk file in that directory, and IntelliJ will boot with its default.

I have a related answer about Android Studio

Community
  • 1
  • 1
Heath Borders
  • 30,998
  • 16
  • 147
  • 256
1

you can just delete this config file /Users/xxx/Library/Application Support/JetBrains/IntelliJIdea2022.1/idea.jdk

Isai
  • 11
  • 2
0

For MacOS(checked on Catalina) just run the "repair" binary located in:

/Applications/IntelliJ IDEA CE.app/Contents/bin
ᐅdevrimbaris
  • 718
  • 9
  • 20