Update java_gui/BEViewer

Improved compatibility because "readlink -f" may not be compatible on Mac systems.