Forums Register Login

JNI: Swing to PerL

+Pie Number of slices to send: Send
My front end needs to be done using java swing/awt. I am however, required, to reuse existing perl codes. Is JNI able to talk to Perl directly? Or JNI to c, then c will talk to perl (if that is possible).
+Pie Number of slices to send: Send
 

Originally posted by Jesus Angeles:
My front end needs to be done using java swing/awt. I am however, required, to reuse existing perl codes. Is JNI able to talk to Perl directly? Or JNI to c, then c will talk to perl (if that is possible).



JNA will allow you to call directly into a DLL which exports a C-callable interface, so you could conceivably call into the perl interpreter.

Alternatively you could invoke a perl process via Runtime.exec and collect the results via the filesystem.
+Pie Number of slices to send: Send
Thanks for the tip.
I didn't do it. You can't prove it. Nobody saw me. The sheep are lying! This tiny ad is my witness!
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1107 times.
Similar Threads
JSF + JBoss Seam [will appreciate any feedback]
Service Status
Calculation of CPU load
JBuilder and required projects
Calling Java Methods in a windows java service
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 18, 2024 21:44:37.