GraphTraversalSource g = AnonymousTraversalSource.traversal().withRemote(propertiesFile);
long vertices = g.V().count().next();Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/tinkerpop/gremlin/process/traversal/util/BytecodeUtil
at org.apache.tinkerpop.gremlin.driver.remote.DriverRemoteConnection.getRequestOptions(DriverRemoteConnection.java:230)
at org.apache.tinkerpop.gremlin.driver.remote.DriverRemoteConnection.submitAsync(DriverRemoteConnection.java:223)
at org.apache.tinkerpop.gremlin.process.remote.traversal.step.map.RemoteStep.promise(RemoteStep.java:89)
at org.apache.tinkerpop.gremlin.process.remote.traversal.step.map.RemoteStep.processNextStart(RemoteStep.java:65)
at org.apache.tinkerpop.gremlin.process.traversal.step.util.AbstractStep.next(AbstractStep.java:128)
at org.apache.tinkerpop.gremlin.process.traversal.step.util.AbstractStep.next(AbstractStep.java:38)
at org.apache.tinkerpop.gremlin.process.traversal.util.DefaultTraversal.next(DefaultTraversal.java:200)
at my.app.App.initializeConnection(App.java:39)
at my.app.App.main(App.java:22)
Caused by: java.lang.ClassNotFoundException: org.apache.tinkerpop.gremlin.process.traversal.util.BytecodeUtil
at java.net.UddRLClassLoader.findClass(URLClassLoader.java:382)
at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
... 9 more--
You received this message because you are subscribed to the Google Groups "Gremlin-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/144c2f82-da44-403f-ba2a-21117864be80%40googlegroups.com.
...
<dependency>
<groupId>org.apache.tinkerpop</groupId>
<artifactId>gremlin-driver</artifactId>
<version>3.4.4</version>
</dependency>
......
<dependency>
<groupId>org.apache.tinkerpop</groupId>
<artifactId>gremlin-core</artifactId>
<version>3.4.4</version>
</dependency>
<dependency>
<groupId>org.apache.tinkerpop</groupId>--
You received this message because you are subscribed to the Google Groups "Gremlin-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/465a2b00-f4f5-466b-b66d-fe6996084335%40googlegroups.com.
mvn clean install
mvn exec:java -Dexec.mainClass=my.app.App[INFO] Scanning for projects...
[INFO]
[INFO] -----------------------------< my.app:app >-----------------------------
[INFO] Building app 0.0.1
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-dependency-plugin:2.8:tree (default-cli) @ app ---
[INFO] my.app:app:jar:0.0.1
[INFO] +- junit:junit:jar:4.12:test
[INFO] | \- org.hamcrest:hamcrest-core:jar:1.3:test
[INFO] +- org.janusgraph:janusgraph-core:jar:0.4.0:compile
[INFO] | +- org.apache.tinkerpop:gremlin-core:jar:3.4.1:compile
[INFO] | | +- org.apache.tinkerpop:gremlin-shaded:jar:3.4.1:compile
[INFO] | | +- org.yaml:snakeyaml:jar:1.15:compile
[INFO] | | +- org.javatuples:javatuples:jar:1.2:compile
[INFO] | | +- com.jcabi:jcabi-manifests:jar:1.1:compile
[INFO] | | | \- com.jcabi:jcabi-log:jar:0.14:compile
[INFO] | | +- com.squareup:javapoet:jar:1.8.0:compile
[INFO] | | +- net.objecthunter:exp4j:jar:0.4.8:compile
[INFO] | | \- org.slf4j:jcl-over-slf4j:jar:1.7.25:compile
[INFO] | +- org.apache.tinkerpop:gremlin-groovy:jar:3.4.1:compile
[INFO] | | +- org.apache.ivy:ivy:jar:2.3.0:compile
[INFO] | | +- org.codehaus.groovy:groovy-groovysh:jar:indy:2.5.6:compile
[INFO] | | | +- org.codehaus.groovy:groovy-cli-picocli:jar:2.5.6:compile
[INFO] | | | | \- info.picocli:picocli:jar:3.9.2:compile
[INFO] | | | +- org.codehaus.groovy:groovy-console:jar:2.5.6:compile
[INFO] | | | | +- org.codehaus.groovy:groovy-swing:jar:2.5.6:compile
[INFO] | | | | \- org.codehaus.groovy:groovy-templates:jar:2.5.6:compile
[INFO] | | | | \- org.codehaus.groovy:groovy-xml:jar:2.5.6:compile
[INFO] | | | \- jline:jline:jar:2.14.6:compile
[INFO] | | +- org.codehaus.groovy:groovy-jsr223:jar:indy:2.5.6:compile
[INFO] | | +- org.mindrot:jbcrypt:jar:0.4:compile
[INFO] | | \- com.github.ben-manes.caffeine:caffeine:jar:2.3.1:compile
[INFO] | +- org.apache.tinkerpop:tinkergraph-gremlin:jar:3.4.1:compile
[INFO] | +- org.glassfish:javax.json:jar:1.0:compile
[INFO] | +- io.dropwizard.metrics:metrics-core:jar:3.2.2:compile
[INFO] | +- io.dropwizard.metrics:metrics-ganglia:jar:3.2.2:compile
[INFO] | | \- info.ganglia.gmetric4j:gmetric4j:jar:1.0.7:compile
[INFO] | +- io.dropwizard.metrics:metrics-graphite:jar:3.2.2:compile
[INFO] | +- org.reflections:reflections:jar:0.9.9-RC1:compile
[INFO] | | +- org.javassist:javassist:jar:3.16.1-GA:compile
[INFO] | | \- dom4j:dom4j:jar:1.6.1:compile
[INFO] | | \- xml-apis:xml-apis:jar:1.0.b2:compile
[INFO] | +- org.locationtech.spatial4j:spatial4j:jar:0.7:compile
[INFO] | +- org.locationtech.jts:jts-core:jar:1.15.0:compile
[INFO] | +- commons-collections:commons-collections:jar:3.2.2:compile
[INFO] | +- commons-configuration:commons-configuration:jar:1.10:compile
[INFO] | | +- commons-lang:commons-lang:jar:2.6:compile
[INFO] | | \- commons-logging:commons-logging:jar:1.1.1:compile
[INFO] | +- commons-io:commons-io:jar:2.3:compile
[INFO] | +- commons-codec:commons-codec:jar:1.7:compile
[INFO] | +- com.google.guava:guava:jar:18.0:compile
[INFO] | +- com.carrotsearch:hppc:jar:0.7.1:compile
[INFO] | +- com.github.stephenc.high-scale-lib:high-scale-lib:jar:1.1.4:compile
[INFO] | +- com.google.code.findbugs:jsr305:jar:3.0.0:compile
[INFO] | +- org.noggit:noggit:jar:0.6:compile
[INFO] | \- org.apache.commons:commons-text:jar:1.0:compile
[INFO] +- org.apache.tinkerpop:gremlin-driver:jar:3.4.4:compile <===== gremlin-driver is listed here but it does not show gremlin-core as a dependency
[INFO] | +- io.netty:netty-all:jar:4.1.36.Final:compile
[INFO] | +- org.codehaus.groovy:groovy:jar:indy:2.5.7:compile
[INFO] | +- org.codehaus.groovy:groovy-json:jar:indy:2.5.7:compile
[INFO] | \- org.apache.commons:commons-lang3:jar:3.8.1:compile
[INFO] +- org.slf4j:slf4j-api:jar:1.7.5:compile
[INFO] \- org.slf4j:slf4j-log4j12:jar:1.7.5:compile
[INFO] \- log4j:log4j:jar:1.2.17:compile
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.787 s
[INFO] Finished at: 2020-01-20T15:54:33+01:00
[INFO] ------------------------------------------------------------------------
--
You received this message because you are subscribed to the Google Groups "Gremlin-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/f6b324d8-1c21-44c4-8e35-2e63a7ece1ba%40googlegroups.com.