jzos

General discussion on the JZOS batch launcher and toolkit
Post Reply
buleyhor
Posts: 7
Joined: Wed Feb 03, 2010 10:05 am
Location: OCE/OPS Muenchen

jzos

Post by buleyhor »

hello i try to check the saf test but the sample cant find the com.dovetail.jzos.testing.SafTest

my job is
//J0TZJZOS JOB (BULEY)
//PROCLIB JCLLIB ORDER=PROD.JZOS.SAMPJCL
//*
//*********************************************************************
//*
//* Batch job to run the Java1.4 VM
//*
//* Tailor the proc and job for your installation:
//* 1.) Modify the Job card per your installation's requirements
//* 2.) Modify the PROCLIB card to point to this PDS
//* 3.) edit JAVA_HOME to point to the location of the 1.4 JDK
//* 4.) edit JZOSAW_HOME to point to the JZOS alphaWorks directory
//* 4.) Modify the CLASSPATH as required to point to your Java code
//* 5.) Modify JAVACLS and ARGS to launch desired Java class
//*
//*********************************************************************
//*
//*
//JAVA EXEC PROC=EXJZOSVM,VERSION='14',
// JAVACLS='com.dovetail.jzos.testing.SafTest',
// ARGS='BPXROOT HLDOI05 FACILITY BPX.DAEMON'
//STDENV DD *
# This is a shell script which configures
# any environment variables for the Java JVM.
# Variables must be exported to be seen by the launcher.

. /etc/profile
###########################################################
# Customize below to match your installation:
# JAVA_HOME - The location of the SDK
# JZOS_HOME - The location of the JZOS alphaworks preview
###########################################################
export JAVA_HOME=/usr/lpp/java/J6.0_31
export JZOS_HOME=/usr/local/jzos/jzos240/jzos/jzos

export PATH=/bin:"${JAVA_HOME}"/bin:

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

# Force the alphaWorks version of JZOS to run overriding the SDK
OPTS="-Djava.ext.dirs=${JZOS_HOME}:${JAVA_HOME}/lib/ext"
OPTS="$OPTS -Djzos.jdfsort.dir=${JZOS_HOME}"
OPTS="$OPTS -Djzos.script.path=${JZOS_HOME}/sample"
export JZOS_JVM_OPTIONS="$OPTS"

# Add the JZOS samples to the classpath
CLASSPATH="${JZOS_HOME}/jzos_sample.jar"

# Uncomment the following to add additional required jars to CLASSPATH
#export APP_HOME=<APP_HOME>
#for i in "${APP_HOME}"/*.jar; do
# CLASSPATH="$CLASSPATH":"$i"
# done

export CLASSPATH="$CLASSPATH":
# Set JZOS specific options
# Use this variable to specify encoding for DD STDOUT and STDERR
#export JZOS_OUTPUT_ENCODING=Cp1047
# Use this variable to prevent JZOS from handling MVS operator commands
export JZOS_ENABLE_MVS_COMMANDS=false
# Use this variable to supply additional arguments to main
export JZOS_MAIN_ARGS=""

# Configure JVM options
IJO="-Xms16m -Xmx128m"
# Uncomment the following to aid in debugging "Class Not Found" problems
#IJO="$IJO -verbose:class"
# Uncomment the following if you want to run with Ascii file encoding..
#IJO="$IJO -Dfile.encoding=ISO8859-1"

export IBM_JAVA_OPTIONS="$IJO "

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


and the output

JVMJZBL1001N JZOS batch Launcher Version: 2.1.0 alphaWorks
JVMJZBL1002N Copyright (C) IBM Corp. 2005. All rights reserved.
java version "1.6.0"
Java(TM) SE Runtime Environment (build pmz3160sr5-20090604_01 (SR5))
IBM J9 VM (build 2.4, J2RE 1.6.0 IBM J9 2.4 z/OS s390-31 jvmmz3160sr5-20090519_3
J9VM - 20090519_035743_bHdSMr
JIT - r9_20090518_2017
GC - 20090417_AA)
JVMJZBL1049W JZOS batch Launcher Version '2.1.0 alphaWorks' does not match jzos.
2010-02-05'
JVMJZBL1015N MVS commands are DISABLED
JVMJZBL1023N Invoking com.dovetail.jzos.testing.SafTest.main()...
JVMJZBL2008E Could not find or load class: com.dovetail.jzos.testing.SafTest
JVMJZBL2007E Stack trace follows:
java.lang.NoClassDefFoundError: com.dovetail.jzos.testing.SafTest
Caused by: java.lang.ClassNotFoundException: com.dovetail.jzos.testing.SafTest
at java.net.URLClassLoader.findClass(URLClassLoader.java:419)
at java.lang.ClassLoader.loadClass(ClassLoader.java:643)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:345)
at java.lang.ClassLoader.loadClass(ClassLoader.java:609)

JVMJZBL1047W JZOS batch launcher completed with Java exception, return code=100

thanks for any help
Post Reply