how to call java -jar from rpgle

1k views Asked by At

I try to call a java main from rpgle program. I have set directory and classpath correctly and I actually managed to call java method/main from a .class file.

However, I have no clue at all on how to call a main method from a .jar file in rpgle. This is what I get from error message:

"received Java exception "java.lang.NoClassDefFoundError:          
 com.tl.TL" when calling method "main" with signature
 "([Ljava.lang.String;)V" in class "com/tl/TL".

Appreciate someone could show me the light in the tunnel.... Thank you!

1

There are 1 answers

0
wkl2016 On BEST ANSWER

CLASSPATH no doubt is a sensitive matter... Defining a correct CLASSPATH will determine 50% of the succeed of executing a working program.