on 01-06-2007 9:26 AM
Hello All,
Am facing a problem in creating workspaces in DTR. Am working on EP7 SR2 (SP9)
Have read mostly all related posts on SDN but cannot catch the missing link...Please guide me for the same:
<u><b>setvars.bat</b></u>
@echo off
rem Default properties definition for the DTR Client Commandline Tool:
rem -
rem (1) Mandatory: DTR configuration folder:
set DTR_HOME=C:\Documents and Settings\RHunjan
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:
set LOGGING=%DTR_HOME%\logging.properties
rem (3) Default properties:
rem set DEFAULT_PROPERTIES=-Dvfs.configfolder=%CFG_DIR% -Dvfs.logging=%LOGGING%
<u><b>dtrshell.bat</b></u>
@echo off
rem Run DTR Commandline Shell:
rem -
rem (1) Get it running:
rem -
rem - Adapt configuration settings in setvars.bat.
rem - Uncomment the settings for the used archives
rem that fit to the currently used Netweaver Developer Studio.
call setvars.bat
set CLASS_PATH=
rem (2) Used Archives Settings:
rem -
rem Used Archives in 6.40 and 7.00 Netweaver Developer Studio installation:
rem -
set CLASS_PATH=%CLASS_PATH%;com_tssap_dtr_client_vfs.jar
set CLASS_PATH=%CLASS_PATH%;httpclient.jar
set CLASS_PATH=%CLASS_PATH%;httpclientext.jar
set CLASS_PATH=%CLASS_PATH%;com_tssap_dtr_client_commandline.jar
rem Archives from foreign Plugins:
set CLASS_PATH=%CLASS_PATH%;..\com.tssap.sap.libs.xmltoolkit\lib\sapxmltoolkit.jar
set CLASS_PATH=%CLASS_PATH%;..\com.tssap.sap.libs.logging\lib\logging.jar
set CLASS_PATH=%CLASS_PATH%;..\com.sap.tc.jarm\lib\jARM.jar
rem The recommended value for maximum heap size for the JVM to run DTR Commandline client is 256M or higher.
rem You can change the settings based on system resources available.
set VM_PARAMS=-Xmx256m
rem (3) Run DTR Commandline Shell:
rem -
java %VM_PARAMS% -classpath %CLASS_PATH% %DEFAULT_PROPERTIES% com.tssap.dtr.client.commandline.DTRShell %*
===================
I get an error saying:
<i><b>Exception in thread "main" java.lang.NoClassDefFoundError: com/sap/tc/logging/Lo
cation
at com.tssap.dtr.client.commandline.DTRShell.<clinit>(DTRShell.java:21)</b></i>
Please guide......
Awaiting Reply.
Thanks & WArm Regards,
Ritu
Message was edited by:
Ritu Hunjan
Hello Ritu,
the problem is probably in these lines:
rem Archives from foreign Plugins:
set CLASS_PATH=%CLASS_PATH%;..com.tssap.sap.libs.xmltoolkitlibsapxmltoolkit.jar
set CLASS_PATH=%CLASS_PATH%;..com.tssap.sap.libs.loggingliblogging.jar
set CLASS_PATH=%CLASS_PATH%;..com.sap.tc.jarmlibjARM.jar
For a NW04s studio these paths are not correct, the plugin directories have some version suffix.
rem Archives from foreign Plugins:
set CLASS_PATH=%CLASS_PATH%;..com.tssap.sap.libs.xmltoolkit_2.0.0libsapxmltoolkit.jar
set CLASS_PATH=%CLASS_PATH%;..com.tssap.sap.libs.logging_2.0.0liblogging.jar
set CLASS_PATH=%CLASS_PATH%;..com.sap.tc.jarm_2.0.0libjARM.jar
Please check the folder names in the /eclipse/plugins/ directory to verify that this is correct for your installation.
Regards,
Marc
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.