|
Robert, You would put your java code in the IFS. To compile start Qshell using the QSH command (you should load Qshell on your system if it is not there). In Qshell you would use commands like cd, mkdir, ls, and javac. >From a green screen use QSH and pass your java call in the command parameter. You may need to set your CLASSPATH using ADDENVVAR first. You have a few options on the call. The easiest, if you do not need to pass data between the RPG program and Java is to use QSH and pass your java xxxx command in the command parameter using QCMDEXC. Other options are to use a data queue or call your java directly from RPG. If performance counts, a data queue is a good bet because it bypasses the startup cost of the JDK. David Morris >>> rupshall@psasoft.com 03/22/02 09:10AM >>> I have a very siple question I hope that somebody can anwser for me. I have a java program that I currently run from a DOS prompt. I want to more this program to the as400 and maybe put and rpg wrapper around it. Can I do this? If so where do I place the Java code? How do I compile? How do I set a classpath? Can I call this from a green screen command prompt? If so how? Can I call this directly from an RPG ILE? If so how? Sorry for the 20 questions but I think they should be fairly easy for anybody who has already done this, I am not a newbie to Java or the 400, the Java on the 400 so I don't expect it should be to hard to point me in the right direction. Robert Upshall Professional Software of Amarillo (806) 358-8928 rupshall@psasoft.com
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.