I am working an a CMS(Content Management System). In this CMS, they have provided inbuilt functionalities which are written in Perl. Now I dont know much about Perl and want to write a program in Java to be executed on server. I need to use some of the functionalities provided with CMS which is in Perl. I dont have access to the source code of this subroutine, so I can not recode it in Java.
How can I use this functionality written in Perl with Java ? There is something called JNDI, with the help of which we can run scripts in native languages (which is Perl in this case). But I have never used it. Can someone give me an idea about how to use it with a small and simple sample script ?
Not JNDI (Java Naming and Directory Interface) but JNI (Java Native Interface).
I don't know if you are able to use Perl with JNI; JNI requires compiled DLL files (for Windows) or shared libraries (libxxx.so, for Unix / Linux). That said, I did a Google search on jni perl and found this. Perhaps this is something you can use.