ZUtil usage

General discussion on the JZOS batch launcher and toolkit
Post Reply
fredroe
Posts: 5
Joined: Fri Apr 29, 2005 2:18 pm

ZUtil usage

Post by fredroe »

I have my own JVM launcher and am wondering if your ZUtil class has a dependency on the way you launch the JVM? I'm getting this exception:

java.lang.UnsatisfiedLinkError: /u/froe/jzos/libjzos14.so: EDC5157I An internal error has occurred..at java.lang.ClassLoader$NativeLibrary.load(Native Method)
.at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:2135)
.at java.lang.ClassLoader.loadLibrary(ClassLoader.java:2013)
.at java.lang.Runtime.loadLibrary0(Runtime.java:824)
.at java.lang.System.loadLibrary(System.java:908)
.at com.dovetail.jzos.ZUtil.<clinit>(ZUtil.java:55)
.at string_array_utility.setArray3(string_array_utility.java:56)
mwilliam
Posts: 37
Joined: Mon Oct 11, 2004 3:21 pm

Post by mwilliam »

Be warned,
as for my experience of using this product, the JZOS classes depend on the JZOS launcher. This JVM setup will resolve rather or not JRE 1.3 or 1.4 is currently being used.

Also note, I recommend changing the default region size from 0M to that of size of the max heap size (-Xmx48m) plus 24m, while using the JZOS launcher. This works best at our site.
dovetail
Site Admin
Posts: 2025
Joined: Thu Jul 29, 2004 12:12 pm

Post by dovetail »

You should be able to use the ZUtil class without the JZOS Launcher, but it requires the JZOS shared library (dll). The error that you are getting would seem to indicate that the LIBPATH is not set correctly to point to the JZOS shared library. Look at how the JCL for running the JZOS launcher sets this for an example. Make sure that you are pointing to the right library to match the version of the JDK that you are running.
fredroe
Posts: 5
Joined: Fri Apr 29, 2005 2:18 pm

Post by fredroe »

The problem in my case was that I'm running everything APF authorized(!!). Once I flipped the authorized bit on for the dll it all worked out ok. Sorry for being tardy with the update.
Post Reply