Moving to java for the wrapper script