Description
First noticed with JanusGraph's gremlin-server.sh but also seems to apply to TinkerPop's gremlin-server.sh: the Java classpath contains every jar twice.
I think this is due to the following
- A CP variable is built (gremlin-server.sh#L97-L101)
- A CLASSPATH variable is created and assigned CP (gremlin-server.sh#L103)
- Java is started with -cp $CP:$CLASSPATH (gremlin-server.sh#L169, gremlin-server.sh#L187, ...)
Not setting the CLASSPATH variable or starting java with -cp $CP should be enough.