IBM Support

TestClient.bat and TestClient.sh files do not work properly on Windows and Solaris.

Troubleshooting


Problem

TestClient.bat on Windows and TestClient.sh on Solaris operating systems do not work properly.

Symptom

On Windows: if the path in the TestClient.bat file contains a space, such as:
"set WAS_HOME=C:\Program Files\IBM\WebSphere\AppServer". If there is a space, the following error results:
Exception in thread "main" java.lang.NoClassDefFoundError: Files
Caused by: java.lang.ClassNotFoundException: Files
at java.net.URLClassLoader.findClass(URLClassLoader.java:423)
at java.lang.ClassLoader.loadClassHelper(ClassLoader.java:688)
at java.lang.ClassLoader.loadClass(ClassLoader.java:667)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:346)
at java.lang.ClassLoader.loadClass(ClassLoader.java:650)
Could not find the main class: Files. Program will exit.

On Solaris: the usage displays as:
Usage: TestClient.sh {rmi|soap|jms xml-folder} [WASUserName WASPassword]

rmi channel name
xml-folder target folder or file
if security is enabled provide WAS username and password

Resolving The Problem

On Windows: You must manually modify the TestClient.bat file.
1. Remove the double quotation from "%JAVA_HOME%\bin\java" and "%CLASSPATH%".
2. Add a double quotation for the first %CLASSPATH% if it contains space.
set CLASSPATH="%TOOL_DIR%";"%CLASSPATH%"

On Solaris: You must manually modify the two syntax errors.
1. Modify 'if [ $1 -eq ? ]; then' to 'if [ $1 = ? ]; then'
2. Modify 'if [ "$WAS_HOME" -eq "" ];' to 'if [ -z "$WAS_HOME" ];'

[{"Product":{"code":"SSWSR9","label":"IBM InfoSphere Master Data Management"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"--","Platform":[{"code":"PF033","label":"Windows"},{"code":"PF027","label":"Solaris"}],"Version":"11.0.0","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}},{"Product":{"code":"SSLVY3","label":"Initiate Master Data Service"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":" ","Platform":[{"code":"","label":""}],"Version":"","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}},{"Product":{"code":"SSPVUA","label":"IBM InfoSphere Master Data Management Server"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":" ","Platform":[{"code":"","label":""}],"Version":"","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
27 April 2022

UID

swg21639510