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" ];'
Was this topic helpful?
Document Information
Modified date:
27 April 2022
UID
swg21639510