add prepare steps for java server