简体   繁体   中英

how to call java -jar from rpgle

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!

毫无疑问,CLASSPATH是一件敏感的事情。定义正确的CLASSPATH将确定成功执行工作程序的50%。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM