Prolog setup in java code