• Post Reply Bookmark Topic Watch Topic
  • New Topic

Using Perl packages in Java program  RSS feed

 
nirjari patel
Ranch Hand
Posts: 386
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ?

Thanks
 
Rob Spoor
Sheriff
Posts: 21131
87
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Campbell Ritchie
Marshal
Posts: 56520
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's too difficult a question for "beginning", so I shall move it.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!