finally have CLASSPATH jars working propertly in Giraph-Gremlin for both local and multi-machine clusters. Thanks @dkuppitz for your help.