Re: Windows Installation Issue

324 views
Skip to first unread message
Message has been deleted
Message has been deleted

srholt18

unread,
Jun 30, 2016, 1:45:44 PM6/30/16
to Search Guard
I am trying to get search-guard up and running on a new windows environment using the Search Guard Bundle distribution.

Running the 'sgadmin.sh' command from the searchguard-client folder produces the following error message:
"Could not find or load main class com.floragunn.searchguard.tools.SearchGuardAdmin"

It looks like the class path is not being set correctly.

Any ideas?

SG

unread,
Jul 7, 2016, 2:45:24 AM7/7/16
to search...@googlegroups.com
Do you use cygwin to execute bash scripts on windows?
> --
> You received this message because you are subscribed to the Google Groups "Search Guard" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to search-guard...@googlegroups.com.
> To post to this group, send email to search...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/search-guard/274d7128-db57-4125-96d0-2b314d474164%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Peter Wain

unread,
Jul 27, 2016, 6:04:24 PM7/27/16
to Search Guard
For the record, I also ran into the same problem. I was using a MobaXterm bash terminal on Windows 8.1 at the time.

I gave up and continued my investigations against the same bundle running on an Ubuntu VM, which went pretty smoothly.

steff potter

unread,
Aug 17, 2016, 11:53:30 AM8/17/16
to Search Guard
Did anyone come up with a solution for this?  Banging my head on a brick wall.

srholt18

unread,
Aug 17, 2016, 12:03:54 PM8/17/16
to Search Guard
Yes.

I ended up using the shell command exe that is shipped with git, sh.exe.  I had to update the plugins\search-guard-2\tools\sgadmin.bat file to the following:

#!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
java $JAVA_OPTS -cp "plugins/search-guard-ssl/*;plugins/search-guard-2/*;lib/*" com.floragunn.searchguard.tools.SearchGuardAdmin "$@"
Reply all
Reply to author
Forward
Message has been deleted
0 new messages