[Gremlin] Problems with batch file under Windows 7

627 views
Skip to first unread message

hastebrot

unread,
Feb 17, 2011, 1:00:06 PM2/17/11
to Gremlin-users
Hi!

I'm new to Gremlin and had some difficulties to run Gremlin under
Windows 7.

The gremlin.bat complained about a syntactical error with a too long
line
(german error message: Die eingegebene Zeile ist zu lang.
Syntaxfehler.)

It turned out that "set LIBDIR=%CD%" was responsible for the error, so
I changed
it to "set LIBDIR=..\lib".

Then Java throwed following exception:

Exception in thread "main" java.lang.NoClassDefFoundError: com/
tinkerpop/gremlin/console/Console
Caused by: java.lang.ClassNotFoundException:
com.tinkerpop.gremlin.console.Console

Solution was to remove or uncomment the line "cd ..\..\..\".

After that it all worked fine.

Greetings from Hannover, Germany
Benjamin

Marko Rodriguez

unread,
Feb 17, 2011, 1:25:54 PM2/17/11
to gremli...@googlegroups.com
Hi Ben,

Thanks for the heads up----unfortunately, its hard to find someone with Windows 7, XP, etc. As such, gremlin.bat is sort of a "hit <enter> and see what happens!" :)

Pavel (or anyone with Windows box): Can you make the adjustments that Ben recommended and see if it works with Windows XP, etc. as well?

Thanks Ben,
Marko.

http://markorodriguez.com

Pavel Yaskevich

unread,
Feb 17, 2011, 1:37:35 PM2/17/11
to gremli...@googlegroups.com, Marko Rodriguez
Sorry but I will be able to reach a guy with Windows box only at the next week, I'm currently sick...

2011/2/17 Marko Rodriguez <okram...@gmail.com>

Peter Neubauer

unread,
Feb 17, 2011, 1:45:57 PM2/17/11
to gremlin-users
Ben,
are you running form GIT compile? Will try on a Windows 7 machine then
from a clean build.

Cheers,

/peter neubauer

GTalk:      neubauer.peter
Skype       peter.neubauer
Phone       +46 704 106975
LinkedIn   http://www.linkedin.com/in/neubauer
Twitter      http://twitter.com/peterneubauer

http://www.neo4j.org               - Your high performance graph database.
http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party.

Peter Neubauer

unread,
Feb 17, 2011, 2:20:02 PM2/17/11
to gremlin-users
Ben,
I just pushed a shorter version of the gremlin.bat. Could you do a

git pull
mvn clean package
gremlin.bat

And see if this works better?

Cheers,

/peter neubauer

GTalk:      neubauer.peter
Skype       peter.neubauer
Phone       +46 704 106975
LinkedIn   http://www.linkedin.com/in/neubauer
Twitter      http://twitter.com/peterneubauer

http://www.neo4j.org               - Your high performance graph database.
http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party.

Benjamin Gudehus

unread,
Feb 17, 2011, 2:43:40 PM2/17/11
to gremli...@googlegroups.com
are you running form GIT compile?

I was running the gremlin-0.7.zip downloaded from downloadable packages on the github project page.

And see if this works better?

Everything worked fine!

I tracked down the problem. %CP% was getting to long with the absolute paths chained together with %CD%..\lib\*.jar.

Here a short transscript:

C:\_gremlin>git clone https://github.com/tinkerpop/gremlin.git
Cloning into gremlin...
.....

C:\_gremlin>cd gremlin

C:\_gremlin\gremlin>mvn clean package
.....

C:\_gremlin\gremlin>gremlin.bat

         \,,,/
         (o o)
-----oOOo-(_)-oOOo-----
gremlin> exit

C:\_gremlin\gremlin\target\gremlin-0.8-SNAPSHOT-standalone\bin>gremlin -e example.grm
1
2
3

C:\_gremlin\gremlin\target\gremlin-0.8-SNAPSHOT-standalone\bin>gremlin -v
gremlin 0.8-SNAPSHOT

--Benjamin


2011/2/17 Peter Neubauer <peter.n...@neotechnology.com>

Peter Neubauer

unread,
Feb 17, 2011, 2:46:48 PM2/17/11
to gremlin-users
yes,
exactly. Glad it worked out! However, the script still changes to the
target directory. would be nicer to just be able to call it from
anywhere and still get short paths.

Cheers,

/peter neubauer

GTalk:      neubauer.peter
Skype       peter.neubauer
Phone       +46 704 106975
LinkedIn   http://www.linkedin.com/in/neubauer
Twitter      http://twitter.com/peterneubauer

http://www.neo4j.org               - Your high performance graph database.
http://www.thoughtmade.com - Scandinavia's coolest Bring-a-Thing party.

Reply all
Reply to author
Forward
0 new messages