Topic
  • 1 reply
  • Latest Post - ‏2008-05-20T17:20:27Z by KirkWolf
SystemAdmin
SystemAdmin
226 Posts

Pinned topic java.lang.UnsatisfiedLinkError: jzos50 (Not found in java.library.path)

‏2008-05-19T18:13:15Z |
What would cause the following error? We are attempting to run IBMSDK50 w/ JZOS functionality, our java app was compiled w/ JZOS V1.2.3 API, but the ZFile method call fails attempting to look for libjzos50.so (our library path only contains /users/eliti/java1.5/bin/libjzos.so).

***************************************************
//JVMPRC15 PROC JAVACLS=,
// ARGS=,
//* LIBRARY='SYS2A.IBM.LINKPDSE',
// VERSION='50',
// LOGLVL='+I',
// REGSIZE='0M',
// LEPARM=''
//JAVAJVM EXEC PGM=JVMLDM&VERSION,REGION=&REGSIZE,
// PARM='&LEPARM/&LOGLVL &JAVACLS &ARGS'

//JAVA EXEC PROC=JVMPRC15,VERSION='50',
// JAVACLS='ELITSend.ELITSend ./ljt/ElitClient/ElitSend/elit.parms'
//STDENV DD *
. /etc/profile
jarhome=/users/elitt/ljt/ElitClient/Jars
export JAVA_HOME=/users/eliti/java1.5
export PATH=/bin:"${JAVA_HOME}"/bin

LIBPATH=/lib:/usr/lib:"${JAVA_HOME}"/bin
LIBPATH="$LIBPATH":"${JAVA_HOME}"/bin/classic
export LIBPATH="$LIBPATH":

CLASSPATH="$JAVA_HOME/lib/tools.jar"
CLASSPATH="$CLASSPATH":"$jarhome/ElitClient_JDK1.4_2008_05_14_test.jar"
CLASSPATH="$CLASSPATH":"$jarhome/FTPBean_2008_02_14.jar"
CLASSPATH="$CLASSPATH":"$jarhome/ElitComm_2008_01_31_SUN.jar"
CLASSPATH="$CLASSPATH":"$jarhome/mail-1.3.2.jar"
CLASSPATH="$CLASSPATH":"$jarhome/activation_V1.0.2.jar"
CLASSPATH="$CLASSPATH":"$jarhome/log4j-1.2.14.jar"
CLASSPATH="$CLASSPATH":"$jarhome/slf4j-log4j12.jar"
CLASSPATH="$CLASSPATH":"$jarhome/jzos-V1.2.3.jar"
export CLASSPATH="$CLASSPATH":

  1. Configure JVM options:
IJO="-Xms64m -Xmx128m -verbose:class"
export IBM_JAVA_OPTIONS="$IJO"

export JAVA_DUMP_HEAP=false
export JAVA_PROPAGATE=NO
export IBM_JAVA_ZOS_TDUMP=NO
//

***************************************************

JVMJZBL2004N Log level has been set to: I
JVMJZBL1001N JZOS batch Launcher Version: 2.0.0 2007-02-12
...
JVMJZBL1006I LIBPATH = /lib:/usr/lib:/users/eliti/java1.5/bin:/users/eliti/java1.5/bin/classic:
...
class load: com.dovetail.jzos.ZFile from: file:/users/elitt/ljt/ElitClient/Jars/jzos-V1.2.3.jar
class load: com.dovetail.jzos.JzosPermission from: file:/users/elitt/ljt/ElitClient/Jars/jzos-V1.2.3.jar
class load: com.dovetail.jzos.ZFile$1 from: file:/users/elitt/ljt/ElitClient/Jars/jzos-V1.2.3.jar
class load: com.dovetail.jzos.ZFile$2 from: file:/users/elitt/ljt/ElitClient/Jars/jzos-V1.2.3.jar
class load: com.dovetail.jzos.RcException from: file:/users/elitt/ljt/ElitClient/Jars/jzos-V1.2.3.jar
class load: java/lang/J9VMInternals$1
JVMJZBL2010E Exception occurred invoking ELITSend.ELITSend.main()
class load: java/io/PrintWriter
JVMJZBL2007E Stack trace follows:
java.lang.UnsatisfiedLinkError: jzos50 (Not found in java.library.path)
at java.lang.ClassLoader.loadLibraryWithPath(ClassLoader.java:979)
at java.lang.ClassLoader.loadLibraryWithClassLoader(ClassLoader.java:948)
at java.lang.System.loadLibrary(System.java:453)
at com.dovetail.jzos.ZFile.<clinit>(ZFile.java:47)
at java.lang.J9VMInternals.initializeImpl(Native Method)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:194)
at ELITSend.ELITSend.processParms(ELITSend.java:854)
at ELITSend.ELITSend.main(ELITSend.java:621)

JVMJZBL1014I Waiting for non-deamon Java threads to finish before exiting...
class load: java/util/IdentityHashMap$KeySet
class load: java/util/IdentityHashMap$IdentityHashMapIterator
class load: java/util/IdentityHashMap$KeyIterator
class load: java/io/DeleteOnExitHook
JVMJZBL2999I JZOS batch launcher elapsed time=31.450051 seconds, cpu time=9.9018450 seconds
JVMJZBL1047W JZOS batch launcher completed with Java exception, return code=100
11:43:23 INFO main : Processing Parameter File: ./ljt/ElitClient/ElitSend/elit.parms
11:43:40 INFO main : Reading ./passwd.ljtgd6 file to obtain inbound ELIT password.
Updated on 2008-05-20T17:20:27Z at 2008-05-20T17:20:27Z by KirkWolf
  • KirkWolf
    KirkWolf
    207 Posts

    Re: java.lang.UnsatisfiedLinkError: jzos50 (Not found in java.library.path)

    ‏2008-05-20T17:20:27Z  
    In SDK 5.0, the JZOS toolkit classes are shipped in $JAVA_HOME/lib/ext/ibmjzos.jar and are automatically in your classpath.
    You should not include the old jzos jar in your classpath.

    Also, to use the new IBM version of JZOS, you will either need to change your code to use the com.ibm.jzos package (rather than com.dovetail.jzos), or you will need to include the jzos migration jar from alphaworks (which has com.dovetail.jzos classes that delegate calls to com.ibm.jzos classes). Its best to change the code to use the new package names.