|
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)
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.