further work on build_java.sh. It's not working yet.