databases/db6, db5: fix JAVA-enabled build, suppress sed failed warnings
Add JAVA_VERSION="7 8" to db6
Add REWARNFILE=/dev/null to db6 and db5
Reported by: Tommy P <tommyhp2@gmail.com>
PR: 243278
MFH: 2020Q1 (blanket, fix broken build)