|
Mike, I didn't see you get a response for this. Did you?If the NoClassDefFound error on the "lockbox" program or is it on something else? Or is "lockbox" just a folder?
You could add the current directory to the classpath by adding a ":." to the end of the CLASSPATH parameter. What folder was your "Hello" class in when you successfully ran it?
Pete Helgren Smith, Mike wrote:
I have created a java program that I am trying to run from a CL using the RUNJVA command. So far unsuccessfully. I think I have a problemwith my classpath, but I just can't figure out why. I have successfully run this. RUNJVA CLASS(Hello) CLASSPATH('/QIBM/ProdData/Java400')PROP((java.version '1.4')) OPTION(*NONE)I ran this just to make sure I had the basics correct.So I exported from WDSC to /QIBM/ProdData/Java400/lockBox my javaprograms. UploadLockBox and ConnectDB2. I also copied jt400.jar to /QIBM/ProdData/Java400 So I have tried to run this command. RUNJVA CLASS(UploadLockBox)CLASSPATH('/QIBM/ProdData/Java400/lockBox:/QIBM/ProdData/Java400/jt400.jar') PROP((java.version '1.4')) OPTION(*NONE) But I get java.lang.NoClassDefFoundErrorI did not export as .jar file(as I probably should). I just seem to for whatever reason have better luck when I export as 'file system' I've also tried to run via Iseries Transform and Run, with the sameresults.Any ideas? I'd be glad to send offline screenshots of my directorystructure - if it would be helpful.Michael Smith iSeries.mySeries.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.