Home Automatically detect managed JDKs in Eclipse
Post
Cancel

Automatically detect managed JDKs in Eclipse

I’ve been using .sdkman to easily install JDKs for a while now, and one thing that bothers me about Eclipse is that it doesn’t automatically detect the JDKs that .sdkman manages.

JRE Discovery

So I wrote the JRE Discovery plugin for Eclipse. It’s a simple plugin that automatically detects the JREs that Java managers install, and configures them in Eclipse. It currently detects JREs managed by :

Managed JREs will be automatically discovered on Eclipse startup, or, while running, when added by their respective Java managers.

Detected JREs

Automatic detection can be disabled from the JRE Discovery preference page: JRE Discovery preference page

See it in action

Here is an example, when combined with the JBang / Eclipse Integration plugin, you can see the JRE Discovery plugin in action, after declaring the JAVA version to use in your JBang script:

JBang JDK detection

Pretty awesome or what?

Installation

JRE Discovery is available in the Eclipse Marketplace. Drag the following button to your running Eclipse workspace. (⚠️ Requires the Eclipse Marketplace Client)

Drag to your running Eclipse* workspace. *Requires Eclipse Marketplace the Client

Alternatively, in Eclipse:

  • open Help > Install New Software...
  • work with: https://github.com/sidespin/jre-discovery/releases/download/latest/
  • expand the category and select the JRE Discovery Feature
  • proceed with the installation
  • restart Eclipse
This post is licensed under CC BY 4.0 by the author.

-

Use GitHub Releases to host an Eclipse P2 Repository