on 08-12-2011 2:23 AM
Hi,
I need to open the dtrshell.bat and work on some of the DTR Commands. I tried different possible combinations to modify the file but still no luck to open the bat file.
My Environment Variables has -
JAVA_HOME = C:\j2sdk1.4.2_15
NWDITOOLLIB = C:\Program Files\SAP\IDE\IDE70\eclipse\tools\lib
My dtrshell.bat file looks like the below
@echo off
REM *****************************************************************************
REM *
REM * Batch file to launch DTR command line tool.
REM * This batch takes the Jars from directory lib.
REM * Environment vriable NWDITOOLLIB must point to the absolute path of the lib
REM * directory.
REM * Configuration settings have to be adapted in setvars.bat.
REM *
REM * SAP AG 2006
REM *
REM *****************************************************************************
call setvars.bat
set CLASS_PATH=
if DEFAULT_PROPERTIES=="" echo DEFAULT_PROPERTIES is not set. Please set it in setvars.bat
if DEFAULT_PROPERTIES=="" goto usage
if "%JAVA_HOME%"=="" echo JAVA_HOME is not set. Please set environment variable JAVA_HOME
if "%JAVA_HOME%"=="" goto usage
if "%NWDITOOLLIB%"=="" set NWDITOOLLIB=../lib
set APPL=com.tssap.dtr.client.commandline.DTRShell
rem Used Archives in 7.00 Netweaver Developer Studio installation:
rem -
set CLASS_PATH=%CLASS_PATH%;%NWDITOOLLIB%\com_tssap_dtr_client_vfs.jar
set CLASS_PATH=%CLASS_PATH%;%NWDITOOLLIB%\httpclient.jar
set CLASS_PATH=%CLASS_PATH%;%NWDITOOLLIB%\httpclientext.jar
set CLASS_PATH=%CLASS_PATH%;%NWDITOOLLIB%\com_tssap_dtr_client_commandline.jar
rem Used Archives from foreign Plugins:
set CLASS_PATH=%CLASS_PATH%;%NWDITOOLLIB%\sapxmltoolkit.jar
set CLASS_PATH=%CLASS_PATH%;%NWDITOOLLIB%\logging.jar
set CLASS_PATH=%CLASS_PATH%;%NWDITOOLLIB%\jARM.jar
REM launch DTRcommand line tool, forward parameters that have been passed via command line
REM The recomended max heap size to run the tool is 256MB or more. This can be changed based on system resources.
set VM_PARAMS=-Xmx256m
"%JAVA_HOME%\bin\java" %VM_PARAMS% -classpath %CLASS_PATH% %DEFAULT_PROPERTIES% %APPL% %*
goto :end
:usage
echo The following properties must be set.
echo.
echo DEFAULT_PROPERTIES must be set in setvars.bat file
echo.
echo The following environment variables must be set:
echo.
echo NWDITOOLLIB: must point to the "lib" folder that contains required Jars.
echo Default value is "../lib"
echo JAVA_HOME: must point to the installation folder of a
echo Java SDK installation
echo.
echo.The recomended max heap size to run the tool is 256MB or more.
echo. The default is set to 256MB. This can be changed based on system resources.
echo Parameter to change this setting is VM_PARAMS.
goto end
:end
My Setvars.bat file looks lie below:
@echo off
rem Default properties definition for the DTR Client Commandline Tool:
rem
rem (1) Mandatory: DTR configuration folder:
set DTR_HOME=C:\Douments and setings\kumarapp
set CFG_DIR=%DTR_HOME%\.dtr
rem Remark: How to find DTR_HOME folder?
rem - In Release 6.40:
rem The default location is C:\Documents and Settings\<user>\.sapnetweaver.
rem - In Release 7.1:
rem Start Netweaver Developer Studio and login to the configuration / client
rem where you would like to work, then choose the menu: 'file' -> 'Switch workspace'.
rem The upcoming dialog shows the currently used Eclipse workspace.
rem The DTR configuration folder is <currently used eclipse workspace>.jdi
rem (2) Optional: Folder with the definition of logging properties:
rem set LOGGING=%DTR_HOME%\logging.properties
rem (3) Default properties:
rem set DEFAULT_PROPERTIES=-Dvfs.configfolder=%CFG_DIR% -Dvfs.logging=%LOGGING%
Can someone please help me here?
Thanks,
Nagarajan.
Hi,
please proceed this way:
In the following example, my dtrshell.bat is located in D:\SAP\IDE\IDE70\eclipse\tools\dtr
1. open a command line tool (cmd.exe):
2. change to the folder D:\SAP\IDE\IDE70\eclipse\tools\dtr
D:\>cd D:\SAP\IDE\IDE70\eclipse\tools\dtr
3. D:\SAP\IDE\IDE70\eclipse\tools\dtr>dtrshell.bat
Files\SAP\IDE\IDE70\eclipse\tools\lib\cbstoollib.jar""=="" was unexpected at this time.
This is the error you face normally.
4. enter the following command: set NWDITOOLLIB=..\lib
D:\SAP\IDE\IDE70\eclipse\tools\dtr>dtrshell.bat
>Initializing...
>This may take a few seconds. Please wait...
>Connecting to client "ERP_TR1_D"
...
I hope this helps.
Best Regards,
Ervin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.