Fix java-get-hierarchy.pl to be more friendly in debugging