compile java resource