the portagemaster ebuild should check which jdk is set as the user/system default. Portagemaster builds correctly with sun-jdk-1.4.0 (and possibly with others, not tested), but it definitely b0rks with blackdown 1.3.1
Added a check for this in pkg_setup(), should work for now.