An user on IRC had problems emerging anything that was using gen-1 system. Turned out to be missing lines GENERATION and VMHANDLE in /etc/env.d/20java because it wasn't recreated after migration, but java-check-environment wasn't catching this. So here's a patch that will make it check for GENERATION in that file too. Caster