|
At 07:14 AM 7/22/2005, Keith.McCully@xxxxxxxxxxxx wrote:
RUNJVA is better for submitted jobs but if you try RUNJVA interacivelyfrom a CLP then the error monitor screen is displayed. This doesn't happen if you execute the java program via QSH.heers, Keith ----java400-l-bounces@xxxxxxxxxxxx wrote: ----- notice most people in this mailing list seem to like using QShell to run<R>Java pgms, why is this? Why bother with SBMJOB CM(QSH CMD(java Test= 1 "anystring")) when you can cut QShell out o the equation and just do SBMJOB CMD(JAVA CLASS(Test) PAR('anystring')) Just something I've always been curious about.  I've never found a reason to need QShell yet, is it just personal prefeence? Thanks, Nigel Gay, Computer Patent Annuities. <B> |---------+-------------------------------------------------><R>| | KeithMcCully@xxxxxxxxxxxx | |   | Sent by: &nbs; | | | &bsp; java400-l-bounces+ngay=cpaglobal.com@m| | &bsp; | idrange.com &nbs; | | |   | | &nbp; | &nbs; | | &nsp; | 21/07/2005 07:59 PM | | &nbs; | Please respond to Java Progrmming on | | | and around the iSeries / AS400 | | &nbp; | &nbs; | |---------+------------------------------------------------>>------------------------ --------------------------------------------------------------------------- -----------|| | | To: Java Programming on and around the iSeries / AS400 <JAVA40-L@xxxxxxxxxxxx> &bsp;| | cc: | | &nsp; Subject: Re: submit java job in batch question |>- --------------------------------------------------------------------------- ----------------------------------|You couldass the string as a parameter into the main method and= , from &nsp; there, invoke the constructor, Test1= (String name), including this<R> string. <DI= DESIGNTIMESP="27754" V>Command woud be: </DIV=> SBMJOB CMD(QSH CMDjava Test= 1 "anystring")) -----java400-l-bo= unces@xxxxxxxxxxx wrote: ----- To: java400-l@xxxxxxxxxxxx &bsp; From: Ashish Kulkarn= i <KULKARNI_ASH1312@xxxxxxxxx> &nsp; Sent by: java400-l-bounces@midran= ge.com   Date: 07/21/2005 10:14PM Subject: submit java job in bath que= stion Hi suppose if have a java= class like public classest { public Test() &nbp; = { } then i can use command SBMJOB &nb3D sp; CMD(QSH CMD(java Test)) and it will workine but suppose = if i have a class pblic class Test1 { public Test1(Sting n= ame) { } } how do i submit it= in bach from CL, how do i get it working shish
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.