1

I have a quite huge Java class that has several imported packages and libraries (related to natural language processing). I want to call some specific methods of my Java classes and get results back using a Perl script. How should I do this? I guess the Inline::Java is not suitable for my purpose since the Java code is quite large to be incorporated at one place.

1
  • Did you try Inline::Java? If the Java library is so huge, how do you run it at all? Commented Jun 25, 2012 at 23:06

2 Answers 2

1

Why is Inline::Java not suitable? You don't need to provide access to all the bits of your Java API. You can write short methods that call into your Java stuff. A small Java adapter layer can show up in your Perl code to give you the access you need. Have you tried it yet?

How big is this Java code base? I've been on projects that easily integrated big Java SDKs (although I wasn't that one doing that part).

Sign up to request clarification or add additional context in comments.

1 Comment

I made system calls and made an adapter layer to serve my purpose.
0

I had ran into similar situation lately. The best solution which worked for me was to use apache thrift service and expose the required methods through it. These method were then in turn consumed by the client written in perl.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.