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

已回答

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?

1

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
Avatar
Permanently deleted user

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

Yes, that should work.

1
Avatar
Permanently deleted user

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

I have pinged colleague about that...

0

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

请先登录再写评论。