[ 
https://issues.apache.org/jira/browse/TINKERPOP-2512?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17273811#comment-17273811
 ] 

ASF GitHub Bot commented on TINKERPOP-2512:
-------------------------------------------

cdegroc opened a new pull request #1385:
URL: https://github.com/apache/tinkerpop/pull/1385


   https://issues.apache.org/jira/browse/TINKERPOP-2512
   
   $CLASSPATH already contains $CP so we shouldn't include both when calling 
`java -cp`
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


> Duplicate jars in classpath when running gremlin-server.sh
> ----------------------------------------------------------
>
>                 Key: TINKERPOP-2512
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP-2512
>             Project: TinkerPop
>          Issue Type: Bug
>          Components: server
>    Affects Versions: 3.4.10
>            Reporter: Clément
>            Priority: Minor
>
> First noticed with [JanusGraph's 
> gremlin-server.sh|https://github.com/JanusGraph/janusgraph/blob/v0.5.3/janusgraph-dist/src/assembly/static/bin/gremlin-server.sh]
>  but also seems to apply to [TinkerPop's 
> gremlin-server.sh|https://github.com/apache/tinkerpop/blob/master/gremlin-server/src/main/bin/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|https://github.com/apache/tinkerpop/blob/master/gremlin-server/src/main/bin/gremlin-server.sh#L98-L101])
>  * A {{CLASSPATH}} variable is created and assigned CP 
> ([gremlin-server.sh#L103|https://github.com/apache/tinkerpop/blob/master/gremlin-server/src/main/bin/gremlin-server.sh#L103])
>  * Java is started with {{-cp $CP:$CLASSPATH}} 
> ([gremlin-server.sh#L169|https://github.com/apache/tinkerpop/blob/master/gremlin-server/src/main/bin/gremlin-server.sh#L169],
>  gremlin-server.sh#L187, ...)
> Not setting the {{CLASSPATH}} variable or starting java with {{-cp $CP}} 
> should be enough.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to