IDEA Flatpak Installation, jdk installed in ~/.jdks, uninstall?

Answered

I installed the IDEA Community Edition Flatpak on Fedora 34. I installed the jdk from the prompts in IDEA.

It looks like the jdk was installed to ~/.jdks.

Is uninstalling the jdk as simple as deleting the jdk? Or are there any further associations that were made on install?

How do I remove the jdk and any traces it may leave, assuming I'd like to do so at some point?

0
4 comments

Hi there - as far as I remember, deleting the JDK should be enough, but let me double-check this with the dev team and get back to you.

0

I appreciate it. It looks like it can just be deleted, because I'm not seeing it in my PATH, but you never know.

0

As suspected, deleting the JDK folder should be enough:

  • JDKs are downloaded to Library/Java/JavaVirtualMachines on macOS and ~/.jdks on Linux and Windows.
  • The JDK installation in IDEA consists of downloading the JDK archive, extracting it, and deleting the archive. No other work is done on install. The code of the JDK installer is open source: source code for JdkInstaller
  • When deleting the downloaded folder, the JDK is uninstalled. It will not be detected by IDEA anymore. If this JDK was configured in IDEA, it will become red and invalid in the list.
1

Awesome. Thanks for checking on that.

0

Please sign in to leave a comment.