/usr/lib/jvm/java-1.5.0-gcj-4.7/bin/gcj is in gcj-4.7-jdk 4.7.2-3.
This file is owned by root:root, with mode 0o777.
It is a symlink to /usr/lib/jvm/java-1.5.0-gcj-4.7/bin/../../../../bin/gcj-4.7
/usr/lib/jvm/java-1.5.0-gcj-4.7/bin/../../../../bin/gcj-4.7