Java 6.0 migration problem.

General discussion on the JZOS batch launcher and toolkit
Post Reply
rbjone
Posts: 9
Joined: Thu Mar 08, 2007 10:01 am

Java 6.0 migration problem.

Post by rbjone »

I am in the process of migrating to IBM SDK 6.0. JZOS runs fine with java 5.0, but I get the error " cannot determine JAVA home directory" when I try to run under Java 6.0. I am using the exact same JCL/Proc except for changing J5.0 to J6.0.

Are there additional/different parms to run java 6?

Thanks,

Russ
dovetail
Site Admin
Posts: 2022
Joined: Thu Jul 29, 2004 12:12 pm

Post by dovetail »

For SDK 6.0, there was a slight change to the proc since one of the LIBPATH directories was renamed by the JVM. This could be your problem.

Please rerun your job with LOGLVL='T' and then either post or email the complete joblog to me at info@dovetail.com so that we can try to figure this out.
dovetail
Site Admin
Posts: 2022
Joined: Thu Jul 29, 2004 12:12 pm

Post by dovetail »

It looks like you have fallen into a known pitfall with the new IBM Java6 SDK. For some reason there are new directories for the import libraries. If you get the updated JCL from the SDK directory (mvstools/sample/jcl/JVMJCL60), you will see that the LIBPATH settings are different:

Code: Select all

LIBPATH=/lib:/usr/lib:"${JAVA_HOME}"/bin        
LIBPATH="$LIBPATH":"${JAVA_HOME}"/lib/s390      
LIBPATH="$LIBPATH":"${JAVA_HOME}"/lib/s390/j9vm 
LIBPATH="$LIBPATH":"${JAVA_HOME}"/bin/classic   
export LIBPATH="$LIBPATH":     
Post Reply