Skip to main content

Error "readlink: not found" may be encountered on the zero command for IBM WebSphere sMash on AIX


Technote (troubleshooting)


Problem(Abstract)

Error "readlink: not found" may be encountered using the IBM WebSphere sMash zero command on the AIX platform

Symptom

Execution of zero commands, such as zero version in the non-root directory of IBM WebSphere sMash on AIX, may return the following exception and the cli will fail to initialize -

bash-3.00# zero version
/usr/bin/zero[24]: readlink:  not found.
Exception in thread "main" java.lang.NoClassDefFoundError: zero.cli.Main
Caused by: java.lang.ClassNotFoundException: zero.cli.Main
        at java.net.URLClassLoader.findClass(URLClassLoader.java:423)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:653)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:346)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:619)
Could not find the main class: zero.cli.Main.  Program will exit.
initializing the cli failed

Cause

The IBM WebSphere sMash zero command on AIX assumes use of the readlink function for parsing symbolic links while the AIX platform does not support readlink.

Resolving the problem

Do not use symbolic links created by the installer for the zero command on AIX. When running zero commands, use the full path to the command.

Rate this page:

(0 users)Average rating

Copyright and trademark information

IBM, the IBM logo and ibm.com are trademarks of International Business Machines Corp., registered in many jurisdictions worldwide. Other product and service names might be trademarks of IBM or other companies. A current list of IBM trademarks is available on the Web at "Copyright and trademark information" at www.ibm.com/legal/copytrade.shtml.

Rate this page:


(0 users)Average rating

Add comments

Document information

WebSphere sMash


Software version:
1.1


Operating system(s):
AIX


Software edition:
All Editions


Reference #:
1431227


Modified date:
2013-04-09

Translate my page

Content navigation