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..
Could not find or load main class Hello
Re: Could not find or load main class Hello
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)
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)
Re: Could not find or load main class Hello
Thanks a lot.. I tried as you said. Now it is working fine.