Installation issues with OpenJDK JRE

Description

There are some people reporting issues when they try to install OpenNMS with OpenJDK JRE instead of the JDK. See here:

http://ask.opennms.eu/?qa=1155/centos-install-fails-with-java-class-issues&show=1156#a1156

Especially when a Server with graphical environment installs an OpenJDK runtime environment. With installing OpenNMS OpenJDK development kit will not be installed when a JRE is present. The documentation should have a hint about checking the OpenJDK environment to prevent users running in this kind of issues.

Acceptance / Success Criteria

None

Lucidchart Diagrams

Activity

Show:

Benjamin Reed June 8, 2017 at 8:20 AM

There is nothing stopping you from also installing the JDK you want in addition to the one that comes from the repo. It's only there to make it so people who just go "yum install opennms" don't think we're idiots for having the installation fail with dependency errors. I think we should go back to requiring oracle JDK.

Alejandro Galue May 16, 2017 at 10:40 AM

Both options are valid, but there is no right option here. It is a matter of taste and personal perferences.

My personal preference would be the first one, as that gives me more flexibility, like install the JDK I want, and more importantly, the version of the JDK I want.

That being said, the second one makes easier for end users the installation process of OpenNMS (which is what I think we have right now). This will reduce the time and effort of installing OpenNMS but will reduce flexibility unless we spend time on updating our repository every time a new version of the JDK is used (which is why the first is my personal preference).

Makes sense ?

Ronny Trommer May 16, 2017 at 9:48 AM
Edited

which one the first or the second?

Alejandro Galue May 16, 2017 at 9:45 AM

I agree with your suggestions.

Ronny Trommer May 16, 2017 at 9:40 AM
Edited

The problem starts when you run apt install opennms or yum install opennms. The dependency will install the OpenJDK. The behavior installing packages from repositories behaves differently than what we say and this is confusing. Some suggestions:

  • Remove the Java dependency completely and let the user ensure a suitable Java Environment is installed and tell them Oracle Java is recommended for production and OpenJDK just for testing.

  • Depend on Oracle Java Development Kit 8+

Fixed

Details

Assignee

Reporter

Components

Affects versions

Priority

PagerDuty

Created May 8, 2017 at 5:21 PM
Updated June 8, 2017 at 10:22 AM
Resolved June 1, 2017 at 10:52 AM