Could not find or load main class Hello

General discussion of the Co:Z Toolkit
Post Reply
Archana
Posts: 9
Joined: Thu Dec 11, 2014 12:47 am

Could not find or load main class Hello

Post by Archana »

Hi all,

I have my java program compiled in zLinux ... i want to run that from z/os ..
I submitted the following JCL.

//STEP1 EXEC PROC=COZPROC,ARGS='coz@Linux'
//STDIN DD *
uname -sr
java Desktop/Hello
//

I got an error msg like " Could not find or load main class Hello "
Can anyone help me to resolve this issue..
dovetail
Site Admin
Posts: 2022
Joined: Thu Jul 29, 2004 12:12 pm

Re: Could not find or load main class Hello

Post by dovetail »

Not sure what version of Java you are using, but this syntax won't work.
First try it from a local linux session, starting from the same directory. If that doesn't work, it won't work when invoked from z/OS.

try:

cd Desktop
java Hello

(this assumes that you have a Hello.class file in the Desktop directory, which is compiled under the default/null package)
Archana
Posts: 9
Joined: Thu Dec 11, 2014 12:47 am

Re: Could not find or load main class Hello

Post by Archana »

Thanks a lot.. I tried as you said. Now it is working fine. :)
Post Reply