Only compile the Java wrapper if Java exists