Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Call java standalon program with parameter

0 Kudos

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

  • SAP Managed Tags:
1 REPLY 1

richard-zhao
Employee
Employee
0 Kudos

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.

  • SAP Managed Tags: