Skip to Content

Call java standalon program with parameter

Dec 27, 2016 at 10:50 PM


avatar image

Hi Gurus!

We had developed a C program where we had to call a 3rd party function from a .dll. The customer changed from Windows servers to Linux, but there are no 3rd party Linux libs, only java libs. So instead of the C program we would like to use a java program to call the 3rd party java libs. The C program was called with an external command (SM69) from ABAP. We would like to use the same method - SM69 - and as I read it is possible.

As far as I understand I have to call the java program with the required paramteres from SM69 with full path to JAVA_HOME. How do I get the return parameter? Do I have to use simply System.Out.Println()?

Java | jar | sm69
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Richard Zhao
Dec 19, 2017 at 06:34 AM

Hi David. I strongly recommend you to encapsulate your function as a web service (restful or SOAP). It's common approach for Java integrate with other system.

10 |10000 characters needed characters left characters exceeded