In the first place, i had no idea what the echo off is used for, i guess it was going through the path settings... Correct me if i'm wrong... i'm now still a student and i like to know if there is anything i could read on. Thanx for the pointers.
set JAVA_HOME=C:\jdk1.3.1_02 set DBXML_HOME=C:\dbXML-Core set PATH=%PATH%;%DBXML_HOME%\bin;%JAVA_HOME%\bin set CLASSPATH=.;C:\dbXML-Core\dbXML.jar
@echo off rem find DBXML_HOME if not "%DBXML_HOME%"=="" goto checkJava
rem check for ant in Program Files on system drive if not exist "%SystemDrive%\Program Files\dbXML-Core" goto checkSystemDrive set DBXML_HOME=%SystemDrive%\Program Files\dbXML-Core goto checkJava
:checkSystemDrive rem check for ant in root directory of system drive if not exist "%SystemDrive%\dbXML-Core" goto checkCurrent set DBXML_HOME=%SystemDrive%\dbXML-Core goto checkJava
:checkdbXML rem check for ant in root directory of system drive if not exist "%SystemDrive%\dbXML-Core" goto checkdbXMLWork set DBXML_HOME=%SystemDrive%\dbXML-Core goto checkJava
:checkdbXMLWork rem check for ant in root directory of system drive if not exist "%SystemDrive%\work\dbXML-Core" goto checkCurrent set DBXML_HOME=%SystemDrive%\work\dbXML-Core goto checkJava
:checkCurrent if exist ".\config" set DBXML_HOME=.\ goto checkJava
:noHome
echo DBXML_HOME is not set and dbXML could not be located. Please set DBXML_HOME.
goto end
:checkJava if "%JAVACMD%" == "" set JAVACMD=java
set LOCALCLASSPATH=%CLASSPATH%;%ANT_HOME%\config
for %%i in (%DBXML_HOME%\java\lib\*.jar) do call %DBXML_HOME%\bin\lcp.bat %%i
if "%JAVA_HOME%" == "" goto runAnt
if exist %JAVA_HOME%\lib\tools.jar call %DBXML_HOME%\bin\lcp.bat %JAVA_HOME%\lib\tools.jar
if exist %JAVA_HOME%\lib\classes.zip call %DBXML_HOME%\bin\lcp.bat %JAVA_HOME%\lib\classes.zip
:runAnt
cd %DBXML_HOME%
echo %JAVACMD% -classpath "%LOCALCLASSPATH%" -noverify org.dbxml.core.server.dbXML %DBXML_HOME%\config\system.xml
%JAVACMD% -Xms16m -Xmx128m -Ddbxml.home=%DBXML_HOME% -classpath "%LOCALCLASSPATH%" -noverify org.dbxml.core.server.dbXML %DBXML_HOME%\config\system.xml
:end set LOCALCLASSPATH=
Regards, Chee Keong(aka CK) :) ^.^
From: Kimbro Staken <[EMAIL PROTECTED]> Reply-To: [email protected] To: [email protected] Subject: Re: Newbie:Abt Collections Date: Tue, 5 Feb 2002 00:27:29 -0700
You need c:\dbXML-Core\bin set in your PATH environment variable.
On Tuesday, February 5, 2002, at 12:18 AM, Ng Chee Keong wrote:
Hi all, I had juz gotten the server running last week, so i'm now into collections.
When i tried to create a top level collection like this: C:\dbXML-Core>dbxmladmin add_collection -c /db -n Test
This is the result: C:\dbXML-Core>dbxmladmin add_collection -c /db -n Test 'dbxmladmin' is not recognized as an internal or external command, operable program or batch file.
I'm not sure if i miss out on anything, but my server is running well and My OS is Win 2K. Can anyone help me on this... i'm so new to this dbXML.
_________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx
Kimbro Staken XML Database Software, Consulting and Writing http://www.xmldatabases.org/
_________________________________________________________________ Send and receive Hotmail on your mobile device: http://mobile.msn.com
