|
Makes sense... Joel R. Cochran Director of Internet Services VamaNet.com (800)480-8810 mailto:webmaster@vamanet.com > -----Original Message----- > From: Ali Ekinci [mailto:Ali.Ekinci@mapics.com] > Sent: Monday, August 05, 2002 3:10 PM > To: rpg400-l@midrange.com > Subject: RE: How to prototype java main method call > > > This is a multipart message in MIME format. > -- > [ Picked text/plain from multipart/alternative ] > FYI: > All I needed to do was to define a String array in RPG and > pass it as the > parm. > > D RunJavaPgm PR EXTPROC(*JAVA: > D 'Launcher': > D 'main') static > D Parm O > CLASS(*JAVA:'java.lang.String')dim(5) > > D parm S O CLASS(*JAVA:'java.lang.String') > D dim(11) > > > > > > > > > "Joel R. Cochran" <jrc@masi-brac.com> > Sent by: rpg400-l-admin@midrange.com > 08/05/2002 01:54 PM > Please respond to rpg400-l > > > To: "'rpg400-l@midrange.com'" <rpg400-l@midrange.com> > cc: > Subject: RE: How to prototype java main method call > > > I haven't done this in RPG yet, but don't you need to send it > an Array of > Strings? The main mehtod is expecting a String[]. I don't > know how you > would do this, but maybe it is on the right trail? > > Joel R. Cochran > Director of Internet Services > VamaNet.com > (800)480-8810 > mailto:webmaster@vamanet.com > > > > -----Original Message----- > > From: Ali Ekinci [mailto:Ali.Ekinci@mapics.com] > > Sent: Monday, August 05, 2002 1:35 PM > > To: rpg400-l@midrange.com > > Subject: re:How to prototype java main method call > > > > > > This is a multipart message in MIME format. > > -- > > [ Picked text/plain from multipart/alternative ] > > Hi, > > Could anybody tell me how to prototype a main method in a > > java class, in > > rpgle? > > > > Here is the main method definition in the java class: > > public static void main(String[] pArgs) {.........} > > > > and here how I am trying to prototype it: > > > > D RunJavaPgm PR EXTPROC(*JAVA: > > D 'Launcher': > > D 'main') static > > D Parm O > CLASS(*JAVA:'java.lang.String') > > > > eval Wparm=%trimr(parm1)+' '+ > > %trimr(parm2)+' '+%trimr(parm3)+' '+ > > %trimr(parm4) > > eval parm=Makestring(Wparm) > > > > The following line gives a Java exception > > "java.lang.NoSuchMethodError: > > main" when calling method "main" with signature > > "(Ljava.lang.String;)V" in > > class "Launcher". > > > > CallP RunJavaPgm(parm) > > _______________________________________________ > > This is the RPG programming on the AS400 / iSeries (RPG400-L) > > mailing list > > To post a message email: RPG400-L@midrange.com > > To subscribe, unsubscribe, or change list options, > > visit: http://lists.midrange.com/cgi-bin/listinfo/rpg400-l > > or email: RPG400-L-request@midrange.com > > Before posting, please take a moment to review the archives > > at http://archive.midrange.com/rpg400-l. > > > _______________________________________________ > This is the RPG programming on the AS400 / iSeries (RPG400-L) > mailing list > To post a message email: RPG400-L@midrange.com > To subscribe, unsubscribe, or change list options, > visit: http://lists.midrange.com/cgi-bin/listinfo/rpg400-l > or email: RPG400-L-request@midrange.com > Before posting, please take a moment to review the archives > at http://archive.midrange.com/rpg400-l. > > > > _______________________________________________ > This is the RPG programming on the AS400 / iSeries (RPG400-L) > mailing list > To post a message email: RPG400-L@midrange.com > To subscribe, unsubscribe, or change list options, > visit: http://lists.midrange.com/cgi-bin/listinfo/rpg400-l > or email: RPG400-L-request@midrange.com > Before posting, please take a moment to review the archives > at http://archive.midrange.com/rpg400-l. >
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.