Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PCML and classpath

Status
Not open for further replies.

halv

Programmer
Joined
Feb 23, 2006
Messages
1
Location
GB
I have some html which calls some java which uses pcml to call an i-series program. This works fine on my pc but when I place on the WAS it complains it can't fine my .pcml file.
Is it possible to set the classpath for my job as follows ? :
CommandCall cmd = new CommandCall(as400System);
cmd.run("ADDENVVAR ENVVAR(CLASSPATH) VALUE('.:/QIBM/PRODDATA/HTTP/PUBLIC/JT400/PCML:/QIBM/PRODDATA/HTTP/PUBLIC/JT400/PCML/CallPgm.pcml') REPLACE(*YES)");
This is setting it at the job level rather than the system level.
I do this shortly before I do :
pcml = new ProgramCallDocument(as400System, "CallPgm");

My pcml file is in the PCML directory.

I get :
java.util.MissingResourceException: PCML document source 'CallPgm' cannot be found.

Setting classpath at system level is not an option.
I have also copied my pcml to the same directory as my java classes.
How do I find out the full package name. My package is called Servlet. I think I have to include my package name
on my ProgramCallDocument line ? A full package name starts with COM? How do I know want comes after COM and before my package name ?
Thanks for any help

regards

Halvor


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top