Fix symlinks in java example.
Refactor java packages.