grouper-users - Re: [grouper-users] The classpath issue of Grouper Shell in gsh.bat
Subject: Grouper Users - Open Discussion List
List archive
- From: Tom Barton <>
- To:
- Cc:
- Subject: Re: [grouper-users] The classpath issue of Grouper Shell in gsh.bat
- Date: Wed, 01 Aug 2007 14:44:50 -0500
By chance are you running this under cygwin?
wrote:
I run the ant command "ant ext.install"in the grouper-qs-1.2.0\grouper
directory. Then the Grouper Shell is built successfully and the relevant files are
installed into the
"GROUPER_HOME/ext/bin/", "GROUPER_HOME/ext/doc/" and "GROUPER_HOME/ext/lib/"
directories.
Then the errors happened when I run the gsh.bat in GROUPER_HOME/ext/bin/:
The system cannot find the path specified
The system cannot find the path specified
The system cannot find the path specified
The system cannot find the path specified
.
.
.
The system cannot find the path specified
(I work in the windows XP platform. And ant version is "Apache Ant version 1.6.5
compiled on June 2 2005".)
After checking the gsh.bat, I find the problem lies on the GSH_HOME. There is
nothing in the %GSH_HOME%\bin:
set GSH_HOME=E:\workspace\grouper1.2\grouper\ext\gsh-src
so I change the GSH_HOME as follows:
set GSH_HOME=E:\workspace\grouper1.2\grouper\ext
The the gsh.bat works perfectly.
BTW, gsh.sh is ok when I test it in Linux.
I wonder whether it's a bug for gsh. And I just know a little about ant. So I
hope that someone can shed light on this issue.
Here is the content of my gsh.bat file:
rem Author: Gary Brown
rem $Id: gsh.bat 2 2007-05-11 18:13:14Z blair.christensen $
@echo off
rem if "%OS%" == "Windows_NT" setlocal
if not "%1" == "acp" goto execute
set GSH_CP=%GSH_CP%;%2
goto end
:execute
rem POPULATED AT BUILD
set GROUPER_HOME=E:\workspace\grouper1.2\grouper
set GSH_HOME=E:\workspace\grouper1.2\grouper\ext\gsh-src
set MEM_START=64m
set MEM_MAX=256m
rem POPULATED AT BUILD
rem The user's CLASSPATH
set GSH_CP=%CLASSPATH%
rem Append Grouper .jar
rem Append Grouper's build classes
set GSH_CP=%GSH_CP%;%GROUPER_HOME%/build/grouper
rem Append Grouper's configuration
set GSH_CP=%GSH_CP%;%GROUPER_HOME%/conf
rem Append Grouper's 3rd party libs
for %%f in (%GROUPER_HOME%\lib\*.jar) do call %GSH_HOME%\bin\gsh acp %%f
rem Append gsh .jar
rem Append gsh's build classes
set GSH_CP=%GSH_CP%;%GSH_HOME%/build/gsh
rem Append gsh's 3rd party libs
for %%f in (%GSH_HOME%\lib\*.jar) do call %GSH_HOME%\bin\gsh acp %%f
java -classpath %GSH_CP% -Xms%MEM_START% -Xmx%MEM_MAX% %GSH_JVMARGS%
com.devclue.grouper.shell.GrouperShell %*
set GSH_CP=
:end
- Re: [grouper-users] The classpath issue of Grouper Shell in gsh.bat, Tom Barton, 08/01/2007
- <Possible follow-up(s)>
- Re: Re: [grouper-users] The classpath issue of Grouper Shell in gsh.bat, chqh, 08/06/2007
Archive powered by MHonArc 2.6.16.