Can you post the exact contents of the data set referenced in DD JAVAENV?
If this points to a USS file, then post the exact contents of that USS file.
Here's the file from my system:
ENVAR("_CEE_ENVFILE=/proj/db2wlm/ids2/nolimit.txt",
"JVMPROPS=/proj/db2wlm/ids2/jvmprop.txt",
"JAVA_HOME=/rsusr/java/IBM/J8.0",
"JCC_HOME=/rsusr/db2/db2d10/jdbc",
"DB2_BASE=/rsusr/db2/db2d10/base"),
MSGFILE(JSPDEBUG,,,,ENQ),
XPLINK(ON)
The total size is 236 bytes which is less than the max of 245 bytes.
Notice the reference to /proj/db2wlm/ids2/nolimit.txt
The contents of this USS file is
STEPLIB=DSN.IDS2.SDSNEXIT:DSN.VD10.SDSNLOAD:DSN.VD10.SDSNLOD2
DB2_BASE=/rsusr/db2/db2d10/base
LIBPATH=$JAVA_HOME/include:$JCC_HOME/lib:/usr/lib:/lib:/rsusr/db2/db2d10/base/lib
CLASSPATH=.:$JCC_HOME/classes/db2jcc.jar:$JCC_HOME/classes/db2jcc_license_cisuz.jar:$JCC_HOME/classes/db2jcc_javax.jar:$JCC_HOME/classes/sqlj.zip:/rsusr/grpr/egfv1r1/egfsproc.jar:$JAVA_HOME/lib/charsets.jar:$DB2_BASE/classes/db2javasp.jar:$DB2_BASE/classes/DSNNVBCT.jar
PATH=$JAVA_HOME/bin:$JCC_HOME/bin
TMSUFFIX=.
WORK_DIR=/proj/db2wlm/ids2
DB2JCCPROPERTIES=/proj/db2wlm/ids2/DB2JccConfiguration.properties
PATH=.:/bin:/usr/local/bin:$JCC_HOME/bin:$JAVA_HOME/bin:$DB2_BASE/bin
------------------------------
Jørn Thyssen
Rocket Software
2022 IBM Champion
------------------------------
Original Message:
Sent: Sep 14, 2022 03:22 AM
From: Eswar Prasad Chandrasekaran
Subject: DB2 zOS : error loading JDBC driver toString string from error is: java.lang.NoClassDefFoundError: com.ibm.db2.jcc.DB2Driver
Hi, Good day, We did this as well. What i have pasted is one of the examples of what we have done
Regards
Eswar
------------------------------
Eswar PrasadChandrasekaranA
Original Message:
Sent: Sep 14, 2022 02:44 AM
From: Jørn Thyssen
Subject: DB2 zOS : error loading JDBC driver toString string from error is: java.lang.NoClassDefFoundError: com.ibm.db2.jcc.DB2Driver
Have you looked at the examples on page 181ff https://www.redbooks.ibm.com/redbooks/pdfs/sg247604.pdf ?
Page 188 has a Java environment example that looks very different from what you posted
------------------------------
Jørn Thyssen
Rocket Software
2022 IBM Champion
Original Message:
Sent: Sep 13, 2022 03:02 AM
From: Eswar Prasad Chandrasekaran
Subject: DB2 zOS : error loading JDBC driver toString string from error is: java.lang.NoClassDefFoundError: com.ibm.db2.jcc.DB2Driver
Hi, Good day,
We have tried everything. Nothing seems to be working
Regards
Eswar
------------------------------
Eswar PrasadChandrasekaranA
Original Message:
Sent: Sep 12, 2022 04:26 PM
From: Jørn Thyssen
Subject: DB2 zOS : error loading JDBC driver toString string from error is: java.lang.NoClassDefFoundError: com.ibm.db2.jcc.DB2Driver
Hi Eswar,
Why do you have two directories in JAVA_HOME?
I'd try JAVA_HOME=/usr/lpp/java/J8.0_64
Also, don't assume that whatever environment variables are set for you also applies to the userid under which the java wlm application environment runs.
------------------------------
Jørn Thyssen
Rocket Software
2022 IBM Champion
Original Message:
Sent: Sep 09, 2022 08:33 AM
From: Eswar Prasad Chandrasekaran
Subject: DB2 zOS : error loading JDBC driver toString string from error is: java.lang.NoClassDefFoundError: com.ibm.db2.jcc.DB2Driver
Hi Manoj, Good day,
The env command has the below
JAVA_HOME=/usr/lpp/java/J8.0_64:/usr/lpp/java/J8.0_64
Hi Robin, Good day,
The WLM user has the below OMVS div and segment.
OMVS / DB2SWLMJ LAST CHANGED BY xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
HOME(/u/home/DB2SWLMJ) OMVSPGM(bin/sh) UID(4,338)
Regards
Eswar
------------------------------
Eswar PrasadChandrasekaranA
Original Message:
Sent: Sep 09, 2022 07:59 AM
From: Robin Kempema
Subject: DB2 zOS : error loading JDBC driver toString string from error is: java.lang.NoClassDefFoundError: com.ibm.db2.jcc.DB2Driver
Validate that the STC user has permission on the USS path.
------------------------------
Robin Kempema
Northwestern Mutual
Original Message:
Sent: Jul 08, 2022 10:25 AM
From: Eswar Prasad Chandrasekaran
Subject: DB2 zOS : error loading JDBC driver toString string from error is: java.lang.NoClassDefFoundError: com.ibm.db2.jcc.DB2Driver
Hi, Good day,
I am running an SQL containing a function which invokes a WLM java stored proc.
I am just currently setting up the JAVAENV, so getting the error in the WLM env.
Any idea how to resolve this ?
error loading JDBC driver toString string from error is: java.lang.NoClassDefFoundError: com.ibm.db2.jcc.DB2Driver
Regard
Eswar
------------------------------
Eswar PrasadChandrasekaranA
------------------------------