Application Development and Automation 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: 
Read only

Call java standalon program with parameter

0 Likes
896
  • SAP Managed Tags

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

1 REPLY 1
Read only

richard-zhao
Product and Topic Expert
Product and Topic Expert
0 Likes
735
  • SAP Managed Tags

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.