Customize the dropdown in SDKs -> Add JDK -> Download JDKs

Answered

There is currently a list of JDKs in the dropdown (see attached image).

How can one customize the dropdown (remove existing list values and replace with a different list)?

How can versions be customized in the second dropdown on the same dialog?

6 comments
Comment actions Permalink

The list is fetched from "preset" URL, all entries are maintained by JetBrains (download.jetbrains.com/jdk/feed/v1/jdks.json). If there is an additional distribution you'd like to see added, please please file feature request: https://youtrack.jetbrains.com/issues/IDEA.

One can set custom download URL by modifying registry key "jdk.downloader.url" (Find Action -> "Registry").

1
Comment actions Permalink

Thank you Yann ! 

My intent is to create a custom jdks.json (pointing to internal JDK builds and versions). I assume that following the vendor and package structures in my_jdks.json and setting that as a URL suffices?

Will try it out later today.

 

0
Comment actions Permalink

Yes, that should work.

1
Comment actions Permalink

Hi Yann, that was helpful.

Quick follow up: How important is the accuracy of unpacked_size attribute? I assume it is used to check disk space ? Does the byte size have to be exact?

0
Comment actions Permalink

I have pinged colleague about that...

0
Comment actions Permalink

The unpacked_size attribute is not important, but it must be included in the JSON. The idea behind the JSON format is as follows - IntelliJ attempts to read the fields it knows something about from the JSON. Any additional fields are not a problem. But if there is a missing field - it would just ignore the problematic item.

 

0

Please sign in to leave a comment.