This is not intented to be committed as it is, but for opening a discussion of
how to deal with the JAVA_HOME variable and the new headless flavor.
Currently the -headless flavor installs to /usr/local/openjdkXX-headless ,
but for ports has USES=java and JAVA_VERSION=XX looks for java binary in its
JAVA_HOME=/usr/local/openjdkXX and cannot find what it wants.
I'm thinking either we have a headless arg so the ports prefers headless
flavor can use USES=java:headless and set the JAVA_HOME correctly. Or,
perhaps we should let both full and headless flavors both install to
/usr/local/openjdkXX , as the ports want headless flavor should also work with
the full flavor. However this caused the ports need full flavor might be
confused /usr/local/openjdkXX is good for it. Maybe this can be solved by
checking other files instead of java binary...