I got the following error message :
java full version "J2RE 1.4.2 IBM build cxia32142-20050609"
+ java -Xbootclasspath/p:auiml/xerces.jar -Xms20m -Xmine4m -Xmx512m -DWEBSM_NO_REMOTE_CLASS_LOADING=false -DWEBSM_NO_SECURITY_MANAGER=false -Djava.security.policy=../config/websm.policy '-Dawt.appletWarning=Remote class Window' -DWEBSM_ALL_PERMISSIONS_FOR_SECURE=true -DWSMDIR=/opt/websm com.ibm.websm.console.WConsole
java.lang.ExceptionInInitializerError
at com.ibm.websm.etc.EImageCache._init(EImageCache.java:164)
at com.ibm.websm.etc.EImageCache.init(EImageCache.java:255)
at com.ibm.websm.etc.EImageCache.
at com.ibm.websm.bridge.WSessionMgr.
at com.ibm.websm.bridge.WSessionMgr.
at com.ibm.websm.bridge.WSessionMgr.getSessionMgr(WSessionMgr.java:241)
at com.ibm.websm.gevent.GEventSupport.
at com.ibm.websm.gevent.GEventSupport.doSetup(GEventSupport.java:97)
at com.ibm.websm.gevent.GEventSupport.addEventListener(GEventSupport.java:115)
at com.ibm.websm.diagnostics.IDebug.Setup(IDebug.java:789)
at com.ibm.websm.diagnostics.IDebug.enabled(IDebug.java:1110)
at com.ibm.websm.diagnostics.Diag.
at com.ibm.websm.console.WConsole.main(WConsole.java:1641)
Caused by: java.lang.NullPointerException
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:2171)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:2006)
at java.lang.Runtime.loadLibrary0(Runtime.java:824)
at java.lang.System.loadLibrary(System.java:908)
at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:76)
at java.security.AccessController.doPrivileged1(Native Method)
at java.security.AccessController.doPrivileged(AccessController.java:287)
at java.awt.Toolkit.loadLibraries(Toolkit.java:1488)
at java.awt.Toolkit.
... 13 more
I don't know exactly what was wrong but it had something to do with my java installation. So I edited the file /opt/websm/bin/wsm and did the change below :
BEFORE
#Set new path to WEBSM export PATH=../_jvm/bin:../bin:/bin:/usr/bin:/opt/kde3/bin echo PATH = $PATH
AFTER
#Set new path to WEBSM export PATH=/usr/java/jre/bin:../_jvm/bin:../bin:/bin:/usr/bin:/opt/kde3/bin echo PATH = $PATH
Then I run it : ./wsm and got the following message :
USING JAVA:
java full version "1.5.0_10-b03"
+ java -Xbootclasspath/p:auiml/xerces.jar -Xms20m -Xmine4m -Xmx512m -DWEBSM_NO_REMOTE_CLASS_LOADING=false -DWEBSM_NO_SECURITY_MANAGER=false -Djava.security.policy=../config/websm.policy '-Dawt.appletWarning=Remote class Window' -DWEBSM_ALL_PERMISSIONS_FOR_SECURE=true -DWSMDIR=/opt/websm com.ibm.websm.console.WConsole
Unrecognized option: -Xmine4m
Could not create the Java virtual machine.
So I edited again the file and took out the option parameter for the JVM :
BEFORE
java ${BOOTPATH} -Xms$W_HEAP_MIN_SIZE -Xmine$W_HEAP_INC_SIZE -Xmx$W_HEAP_MAX_SIZE $ACCESSIBLE -DWEBSM_NO_REMOTE_CLASS_LOADING=$WNRCL -DWEBSM_NO_SECURITY_MANAGER=$WNSM $WSMSSL -Djava.security.policy=../config/websm.policy -Dawt.appletWarning="Remote class Window" -DWEBSM_ALL_PERMISSIONS_FOR_SECURE=true -DWSMDIR="$WSMDIR" com.ibm.websm.console.WConsole
AFTER
java ${BOOTPATH} -Xms$W_HEAP_MIN_SIZE -Xmx$W_HEAP_MAX_SIZE $ACCESSIBLE -DWEBSM_NO_REMOTE_CLASS_LOADING=$WNRCL -DWEBSM_NO_SECURITY_MANAGER=$WNSM $WSMSSL -Djava.security.policy=../config/websm.policy -Dawt.appletWarning="Remote class Window" -DWEBSM_ALL_PERMISSIONS_FOR_SECURE=true -DWSMDIR="$WSMDIR" com.ibm.websm.console.WConsole
I can now run websm on my workstation.