|
This is the Java Main...snippet public class GetIndexService { public URL url; public Document doc; public static void main(String[] args) { String s; String msg; Logmessage logmsg = new Logmessage(); GetIndexService pf = new GetIndexService(); if(args.length < 3){ /*msg = "Error in arguments, first and 2nd parm should be valid date " + "in format xxxx-xx-xx and 3rd parm should be reomte procedure name";*/ try{ logmsg.Logtofile(pf.getClass().getName(), args[0]); System.err.println("Error in input parameters" + " first & second parm should be valid date " + " third parm should be remote method name"); return; } catch (Exception e){ return; } regards, Rajesh Anand Email:Rajesh_anand@xxxxxx -----Original Message----- From: java400-l-bounces@xxxxxxxxxxxx [mailto:java400-l-bounces@xxxxxxxxxxxx] On Behalf Of Barbara Morris Sent: 30 June 2005 02:16 To: java400-l@xxxxxxxxxxxx Subject: Re: Calling Java Main from RPG - Compilation error "Anand, Rajesh" wrote: > > Folks, > > I've posted this before, apologies as I'm still unable to > resolve the problem. > See my latest answer on the RPG list. In general, when posting questions about problems calling Java from RPG, it's important to post all three of the following (most likely to the RPG list): 1. The Java class and method information, for example Myclass: int myMethod (MyObject o, int i) 2. The RPG prototype that you have coded for the method 3. The RPG call to the method You've only posted the RPG calls.
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.