Installation issues with OpenJDK JRE
Description
Acceptance / Success Criteria
Lucidchart Diagrams
Activity

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 AMEdited
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 AMEdited
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+
Details
Assignee
Ronny TrommerRonny TrommerReporter
Ronny TrommerRonny TrommerComponents
Fix versions
Affects versions
Priority
Major
Details
Details
Assignee

Reporter

Components
Fix versions
Affects versions
Priority
PagerDuty
PagerDuty Incident
PagerDuty
PagerDuty Incident
PagerDuty

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.