Cherry picked from commits a5a1049e and befb2d0a.
Original message of the merge request (6121):
Add an option to request a specific JAVA_HOME location for BD-J applications. This require libbluray 1.3.0.