send a message FROM prolog TO java
Destiny Anyaiwe <[email protected]> Thu, 1 May 2014 12:48:50 -0400
| Newsgroups | gmane.comp.ai.prolog.swi |
|---|---|
| Message-ID | <CAJtoSHOobME4onCqqDPeBy947wHRtDcz91yOG0biV8z-Qj36vA@mail.gmail.com> |
I never knew I will come calling so soon, my apologies, though I have been having fun with JPL for the past 3 days. In the middle of my JPL usage and applications I found out the followings *BackGround of problem/question == * I have a java program that runs well in the Sorting of an array numbers, these array of numbers can be hard coded or given to java at execution time. *My INTENTIONS==* I want to feed my Sort.java program with an array of numbers from Prolog, then Sort.java does the sorting and feeds my sort.p Prolog program the sorted result for exhibition. *QUESTIONS:::* Since each new array I give from sort.pl to Sort.java, requires the Sort.java to run how do I make the code in Prolog (sort.pl) for the Sort.java to automatically get the unsorted array, run and feed my sort.pl the result with out me going to eclipse to pull-up/receive the array and then run the java program? I have been doing it bit by bit and manually which is so timid! I would rather love to have a Prolog program of codes to *automatically* 1) send the array 2) ignite or cause Java to run for that particular array 3) get the resulting sorted array from java 4) write/print sorted result Thanks and most humbly appreciate any form of assistance and guides. Regards Destiny -------------- next part -------------- HTML attachment scrubbed and removed