Find proper JVM for STAF/STAX

ISSUE:

 ******************************************************************************
*** 20090401-17:15:00 - Start of Log for JVMName: STAFJVM1
*** JVM Executable: java
*** JVM Options   : -Xmx384m
*** JVM Version   : java version "1.5.0_14"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_14-b03)
Java HotSpot(TM) Server VM (build 1.5.0_14-b03, mixed mode)
Exception in thread "main" java.lang.UnsatisfiedLinkError: /data1/local/staf/lib/libJSTAFSH.so: ld.so.1: java: fatal: /data1/local/staf/lib/libJSTAFSH.so: wrong ELF class: ELFCLASS64 (Possible cause: architecture word width mismatch)
        at java.lang.ClassLoader$NativeLibrary.load(Native Method)
        at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1676)
        at java.lang.Runtime.loadLibrary0(Runtime.java:822)
        at java.lang.System.loadLibrary(System.java:993)
        at com.ibm.staf.service.STAFServiceHelper.(STAFServiceHelper.java:443)

 

Solution:

insert "/usr/local/staf/jre/jre/bin/sparcv9" to PATH and let java be /usr/local/staf/jre/jre/bin/sparcv9/java

你可能感兴趣的:(Linux,jvm,java,exception,build,insert,thread)