Hello,
I am trying to use a java program with a main method inside my RPG. I havent ever tried to use RPG with a main method before. Im kinda confused about main methods and constructors in RPG
The main method accepts 2 parms, Im getting a signature problem when trying to call the main method. Im passing in the 2 parms as java string but it's not buying it ...The program works when I call it from qsh passing the two parms...(yea...). My classpath seems to be correct, it's finding it from qsh.
I think Im going to have to remove the main method and call the individual methods. I was trying to avoid that if possible.
I am trying to use a java program with a main method inside my RPG. I havent ever tried to use RPG with a main method before. Im kinda confused about main methods and constructors in RPG
The main method accepts 2 parms, Im getting a signature problem when trying to call the main method. Im passing in the 2 parms as java string but it's not buying it ...The program works when I call it from qsh passing the two parms...(yea...). My classpath seems to be correct, it's finding it from qsh.
I think Im going to have to remove the main method and call the individual methods. I was trying to avoid that if possible.
Code:
D CryptString S O CLASS(*JAVA D : 'CryptString') D new_CryptString... D PR like(CryptString) D EXTPROC(*JAVA D :'CryptString' D :*CONSTRUCTOR) D xString like(jString) D yString like(jString) D
Code:
aString = new_String('password'); bString = new_String('supersecretpassword'); CryptString = new_CryptString(aString:bString); //Getting main not found
Comment