Compile script for Java-portion