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.
Automatic detection can be disabled from the 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:
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)
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