I am trying to load the data from mongodb database from the Gremlin shell in neo4j in order to create a graph databse from it. The detail is explained in gremlin-mongodb. To get started, I downloaded the GMongo jar file fom GMongo and ran the following codes in Gremlin shell in Neo4j web admin console
gremlin> import com.gmongo.GMongo
gremlin> mongo = new GMongo()
The import command works and imports the packages but the second line failed with message being undefined. I also tried to import the following packages but that did not work either.
import com.mongodb.BasicDBObject
import com.mongodb.DBObject
Any idea what the problem is?