Child pages
  • OpenJDK native installer plugin

Due to some maintenance issues, this service has been switched in read-only mode, you can find more information about the why

and how to migrate your plugin documentation in this blogpost

Skip to end of metadata
Go to start of metadata

Plugin Information

View openJDK-native-plugin on the plugin site for more information.

This plugin adds auto installer for OpenJDK from native RPM packages and provides switching between OpenJDK vesrions using Linux alternatives


Add Java installation, select "Install automatically" and choose OpenJDK installer

Select RPM package, which you want to install

Alternatives and yum are run via sudo, therefore appropriate sudoers setup is requited (including switching off tty requirement which is turned on by default or run pseudo-tty e.g. by including -t param in ssh command).
Example setup:

#Defaults    requiretty
User_Alias JENKINS = test_user
Cmnd_Alias OPENJDK_INSTALL = /usr/sbin/alternatives, /usr/bin/yum


Upcoming changes

Release 1.1 (2015-01-16)

Release 1.0 (2012-03-01)

  • Initial release
  • No labels


  1. Unknown User (hdave)

    This doesn't work on Ubuntu -- RedHat only.

    1. Unknown User (maxhaase)

      It doesn't work on Redhat either!

      Checking OpenJDK installation...
      $ rpm -q java-1.7.0-openjdk
      Switching to java-1.7.0-openjdk using alternatives ...
      $ sudo alternatives --set java /usr/lib/jvm/jre-1.7.0-openjdk/bin/java
      /usr/lib/jvm/jre-1.7.0-openjdk/bin/java has not been configured as an alternative for java
      OpenJDK ERROR Switching OpenJDK via atlernatives to java-1.7.0-openjdk failed! /usr/bin may not exists or point to different java version!

  2. Unknown User (justsomebody)


    Is this plugin still maintained?

    Any plans to add Java11 installers?