Setting (bery long) classpath from rpg
Paul Roy <[email protected]>
| Newsgroups | gmane.comp.lang.as400.java |
|---|---|
| Message-ID | <OF8DF24446.00F29781-ONC1258296.006A64FE-C1258296.006BB599@REAL.LU> |
(short story: I have to call a webservice with WS-security from RPG..) as I did find a pure/native RPG solution, I have easily generated a java client using apache cxf ... I can run the java class from qsh using something like java -cp "/javalibs/*:.:./:/javarun/bin/:" MyClass "parameter" I must call this class from RPG and I do not find any reference to generic ClassPath support ADDENVVAR CLASSPATH '/javalibs/*:.:./:/javarun/bin/:' do not work and seems limited to 1024 chars... I made some progress coding with putenv() ... but generic do not work and I have more than a hundred of jar names to concatenate and this is a time consuming work... where I am lost in many lines of unreadable code .:;- I am tempted to write a tool to build the classpath from a directory but I feel I am reinventing the wheel ... Is there any possibility to use a generic class path from RPG or something like a MANIFEST? or any suggestion? Many thanks Paul -- This is the Java Programming on and around the IBM i (JAVA400-L) mailing list To post a message email: JAVA400-L-Zwy7GipZuJhWk0Htik3J/[email protected] To subscribe, unsubscribe, or change list options, visit: https://lists.midrange.com/mailman/listinfo/java400-l or email: JAVA400-L-request-Zwy7GipZuJhWk0Htik3J/[email protected] Before posting, please take a moment to review the archives at https://archive.midrange.com/java400-l.