This week's giveaway is in the Testing forum.
We're giving away four copies of TDD for a Shopping Website LiveProject and have Steven Solomon on-line!
See this thread for details.
Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Using Perl packages in Java program

 
Ranch Hand
Posts: 386
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 22645
123
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Marshal
Posts: 75638
354
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That's too difficult a question for "beginning", so I shall move it.
 
When evil is afoot and you don't have any arms you gotta be hip and do the legwork, but always kick some ... tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic