dev-java/jai-1.1.2-r2.ebuild has a typo in it's logic. If "java-config --jdk-home" returns an empty string (no JDK configured), jai will then be installed in "/jre", which is not at all correct. I believe what was intended can be done by replacing the two times that the ebuild uses "-z java_home" with "-z $java_home" Reproducible: Always Steps to Reproduce:
Suggested patches applied. Didn't bump, but available as dev-java/jai-1.1.2-r2