|
Scott: When you're trying to debug Java on the iSeries server, make sure that you created the Java program (CRTJVAPGM) with a low optimization level (10). If you set the optimization level too high you can no longer debug it. I've tried adding the debug option when compiling the java program but found that it didn't make a difference, since I was still able to debug it. I'm not sure if you've been able to bring up your java code and set a breakpoint, but check my posting of July 4th to get the info. I've had a lot of sucess debugging once the Java Virtual Machine (JVM) has been started up by the RPG code. I set a break code in my RPG pgm just after I called my constructer in the Java code. Then I've gone into the Interactive Debugger and added my Java class to the module list. After adding it to the module list, I can select my Java code, and set a break point in it. I continue to run my code and it stops in my Java program. NB: You will not be able to add the Java to the module list, until your costructor gets run because, that is what starts up the JVM.Machine. Also make sure you have your environment variable CLASSPATH setup properly. ...Paul, >How do debug a Java program on the iSeries? >I am obviously a Java newbie treat me as such. >I tried using IBM's Interactive debugger I got the classes specified I >pointed to the Source on the IFS (actually mapped to a local drive on my >PC) I set up break points I run the darned thing and it just skips over the >Java program. I am pressing F7 to step into... >Also, this is being called from an RPG program if that matte
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.