Update oab-java.sh

try to fix tail errors