Skip to Content

Call java standalon program with parameter

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()?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • 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.

    Add comment
    10|10000 characters needed characters exceeded