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

Michael McDermott commented on TINKERPOP-1788:
----------------------------------------------

If I manually import the TinkerFactory class, everything works (c.f. transcript 
below). Is there a startup script that is supposed to load here?


         \,,,/
         (o o)
-----oOOo-(3)-oOOo-----
gremlin> :i org.apache.tinkerpop.gremlin.tinkergraph.structure.TinkerFactory
:i org.apache.tinkerpop.gremlin.tinkergraph.structure.TinkerFactory
==>org.apache.tinkerpop.gremlin.structure.*, 
org.apache.tinkerpop.gremlin.structure.util.*, 
org.apache.tinkerpop.gremlin.process.traversal.*, 
org.apache.tinkerpop.gremlin.process.traversal.step.*, 
org.apache.tinkerpop.gremlin.process.remote.*, 
org.apache.tinkerpop.gremlin.structure.util.empty.*, 
org.apache.tinkerpop.gremlin.structure.io.*, 
org.apache.tinkerpop.gremlin.structure.io.graphml.*, 
org.apache.tinkerpop.gremlin.structure.io.graphson.*, 
org.apache.tinkerpop.gremlin.structure.io.gryo.*, 
org.apache.commons.configuration.*, 
org.apache.tinkerpop.gremlin.process.traversal.strategy.decoration.*, 
org.apache.tinkerpop.gremlin.process.traversal.strategy.optimization.*, 
org.apache.tinkerpop.gremlin.process.traversal.strategy.finalization.*, 
org.apache.tinkerpop.gremlin.process.traversal.strategy.verification.*, 
org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.*, 
org.apache.tinkerpop.gremlin.process.traversal.util.*, 
org.apache.tinkerpop.gremlin.process.computer.*, 
org.apache.tinkerpop.gremlin.process.computer.bulkdumping.*, 
org.apache.tinkerpop.gremlin.process.computer.bulkloading.*, 
org.apache.tinkerpop.gremlin.process.computer.clustering.peerpressure.*, 
org.apache.tinkerpop.gremlin.process.computer.traversal.*, 
org.apache.tinkerpop.gremlin.process.computer.ranking.pagerank.*, 
org.apache.tinkerpop.gremlin.process.computer.traversal.strategy.optimization.*,
 org.apache.tinkerpop.gremlin.process.computer.traversal.strategy.decoration.*, 
org.apache.tinkerpop.gremlin.util.*, 
org.apache.tinkerpop.gremlin.util.iterator.*, static 
org.apache.tinkerpop.gremlin.structure.io.IoCore.*, static 
org.apache.tinkerpop.gremlin.process.traversal.P.*, static 
org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.__.*, static 
org.apache.tinkerpop.gremlin.process.computer.Computer.*, static 
org.apache.tinkerpop.gremlin.util.TimeUtil.*, static 
org.apache.tinkerpop.gremlin.process.traversal.SackFunctions.Barrier.*, static 
org.apache.tinkerpop.gremlin.structure.VertexProperty.Cardinality.*, static 
org.apache.tinkerpop.gremlin.structure.Column.*, static 
org.apache.tinkerpop.gremlin.structure.Direction.*, static 
org.apache.tinkerpop.gremlin.process.traversal.Operator.*, static 
org.apache.tinkerpop.gremlin.process.traversal.Order.*, static 
org.apache.tinkerpop.gremlin.process.traversal.Pop.*, static 
org.apache.tinkerpop.gremlin.process.traversal.Scope.*, static 
org.apache.tinkerpop.gremlin.structure.T.*, static 
org.apache.tinkerpop.gremlin.process.traversal.step.TraversalOptionParent.Pick.*,
 org.apache.tinkerpop.gremlin.tinkergraph.structure.TinkerFactory
gremlin> g = TinkerFactory.createModern()
g = TinkerFactory.createModern()
==>tinkergraph[vertices:6 edges:6]
gremlin> g.traversal().V().properties('name')
g.traversal().V().properties('name')
==>vp[name->marko]
==>vp[name->vadas]
==>vp[name->lop]
==>vp[name->josh]
==>vp[name->ripple]
==>vp[name->peter]
gremlin>


> gremlin.sh does not work correctly under Cygwin
> -----------------------------------------------
>
>                 Key: TINKERPOP-1788
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP-1788
>             Project: TinkerPop
>          Issue Type: Bug
>          Components: console
>    Affects Versions: 3.3.0
>            Reporter: Michael McDermott
>         Attachments: gremlin.sh
>
>
> On my machine (Windows 10), I have a Cygwin setup. Attempting to execute 
> gremlin.sh to launch the console errors out. gremlin.bat under cmd runs fine, 
> so I have the general prerequisites (Java, etc.).
> I have partially patched out the shell script (modified off of 3.3.0 
> attached) and it no longer errors out (I initially received issues around CP 
> setting and absolute paths). The big issues I identified were inconsistent 
> usage of the separate classpath separator on Cygwin (; vs. :) and that 
> absolute paths need to be translated when running under Cygwin.
> Something is still broken, though, as I cannot use the shell after it starts 
> up (note that this trivial example works fine in cmd):
> {{gremlin> :plugin list
> :plugin list
> ==>tinkerpop.server
> ==>tinkerpop.gephi
> ==>tinkerpop.utilities
> ==>tinkerpop.sugar
> ==>tinkerpop.credentials
> ==>tinkerpop.hadoop
> ==>tinkerpop.tinkergraph
> gremlin>  g = TinkerFactory.createModern()
>  g = TinkerFactory.createModern()
> No such property: TinkerFactory for class: groovysh_evaluate
> Type ':help' or ':h' for help.
> }}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to