add java wrapper

Assume JAVA_HOME is set.