in reply to Re: How to call .jar files from perl program
in thread How to call .jar files from perl program

While we call a Jar file from a perl application using System() the Jar file is invoked and run normally. At that time we are not able to access the calling Perl Application. When we close the called java application then we are able to access the Perl application. On the other hand if we use the EXEC() to invoke the jar file then the jar invoke and the perl application will close. Can you please suggest how we can call a jar file from the perl application and access both the application(perl and jar)simultaniously?
  • Comment on Re^2: How to call .jar files from perl program

Replies are listed 'Best First'.
Re^3: How to call .jar files from perl program
by dHarry (Abbot) on Jul 07, 2009 at 11:52 UTC

    You didn't mention this in your original post. Maybe you should elaborate a little bit more what exactly it is you are trying to achieve. There are several modules around to use Java from Perl (or the other way around). For example Java a module that allows you to talk to a JVM (local machine or remote), and with Java::Import you can use Java classes in Perl. See below in other responses for more suggestions. Obviously you want to parse XML document and apply XSLT transformations, there are ways of doing this in a more Perlish way. Are you stuck with Saxon? And also where does Perl exactly come in? You could also consider a pure Java/Saxon solution. Please elaborate the problem a little bit more to clarify.