Looks like maybe you forgot the colon: between each class path items.
Here's an example of one of mine:
ADDENVVAR ENVVAR(CLASSPATH) +
VALUE('/javacmds/IBMiSamples:/javacmds/IBMi+
Samples/jt400.jar') REPLACE(*YES)
I have found that every jar has to be called in specifically in the class path, including the directory name where all the files are stored as an individual parameter.
Regards,
Richard Schoen
Web:
http://www.richardschoen.net
Email: richard@xxxxxxxxxxxxxxxxx
-----Original Message-----
message: 1
date: Wed, 4 Jan 2023 13:29:42 +0100
from: "gio.cot via MIDRANGE-L" <midrange-l@xxxxxxxxxxxxxxxxxx>
subject: error java class file is not available
Hi all
I'm new in Java on AS400 .. when i try to runjva command i receive the message class file is not available
Which could be the problem
Thanks in advance
------------------------------
message: 4
date: Wed, 4 Jan 2023 14:54:43 +0100
from: "gio.cot via MIDRANGE-L" <midrange-l@xxxxxxxxxxxxxxxxxx>
subject: RE: error java class file is not available
Hi Rob
Thanks for your reply
Version OS 7.1
My clp run this code
DCL VAR(&PTH) TYPE(*CHAR) LEN(256) +
VALUE(':/JVVV_PLC')
CHGVAR VAR(&CLASSPATH) VALUE(&PTH *TCAT +
'/VVV_PLC.jar' *TCAT &PTH *TCAT +
'/mssql-jdbc-11.2.0.jre8.jar' *TCAT &PTH +
*TCAT '/jt400.jar')
ADDENVVAR ENVVAR(JAVA_HOME) +
VALUE('/QOpenSys/QIBM/ProdData/JavaVM/jdk80+
/64bit')
MONMSG MSGID(CPFA980)
QSYS/RUNJVA CLASS('VVV_plc.VVV_PLC') +
CLASSPATH(&CLASSPATH) OPTION(*DEBUG)
------------------------------
message: 5
date: Wed, 4 Jan 2023 07:54:39 -0600
from: Vern Hamberg via MIDRANGE-L <midrange-l@xxxxxxxxxxxxxxxxxx>
subject: Re: error java class file is not available
Hi
There is a Java list here, I believe, you might check and ask your question there to get the help you need.
Regards
Vern
On 1/4/2023 7:54 AM, gio.cot via MIDRANGE-L wrote:
Hi Rob
Thanks for your reply
Version OS 7.1
My clp run this code
DCL VAR(&PTH) TYPE(*CHAR) LEN(256) +
VALUE(':/JVVV_PLC')
CHGVAR VAR(&CLASSPATH) VALUE(&PTH *TCAT +
'/VVV_PLC.jar' *TCAT &PTH *TCAT +
'/mssql-jdbc-11.2.0.jre8.jar' *TCAT &PTH +
*TCAT '/jt400.jar')
ADDENVVAR ENVVAR(JAVA_HOME) +
VALUE('/QOpenSys/QIBM/ProdData/JavaVM/jdk80+
/64bit')
MONMSG MSGID(CPFA980)
QSYS/RUNJVA CLASS('VVV_plc.VVV_PLC') +
CLASSPATH(&CLASSPATH) OPTION(*DEBUG)
------------------------------
Subject: Digest Footer
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) digest list To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit:
https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives at
https://archive.midrange.com/midrange-l.
Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related questions.
Help support midrange.com by shopping at amazon.com with our affiliate
link:
https://amazon.midrange.com
------------------------------
End of MIDRANGE-L Digest, Vol 22, Issue 6
*****************************************
As an Amazon Associate we earn from qualifying purchases.