Beefy Boxes and Bandwidth Generously Provided by pair Networks Cowboy Neal with Hat
There's more than one way to do things
 
PerlMonks  

Re: Inline Java and standalone executable

by syphilis (Canon)
on Jun 29, 2013 at 08:28 UTC ( #1041426=note: print w/ replies, xml ) Need Help??


in reply to Inline Java and standalone executable

I've done this a few years ago with Inline::C, but I don't use Inline::Java at all.
Obviously, the executable will need the Inline and Inline::Java modules packed into it, and I think you'll also need to accompany the executable with an appropriately named directory structure that contains the additional files that Inline::Java builds and uses.
We should be able to work out the details from the error messages you get when you run the executable in an environment that can find neither a perl installation nor a java compiler.

As davido suggested, the Inline mailing list is a good place for asking about this. (But that doesn't necessarily mean that it can't be solved here.)

Cheers,
Rob


Comment on Re: Inline Java and standalone executable
Re^2: Inline Java and standalone executable
by Anonymous Monk on Jul 01, 2013 at 15:57 UTC
    Thanks Rob. I guess the main thing confusing me is how to the executable made by pp calls files that are packed inside of it. I know it is essentially a zipped archive, but I still am unsure how to call anything inside it (such as saxon9he.jar which XML::Saxon::XSLT2 needs and finds by calling different directories).
      but I still am unsure how to call anything inside it (such as saxon9he.jar which XML::Saxon::XSLT2 needs and finds by calling different directories

      Hmmm ... I'd be thinking that if XML::Saxon::XSLT2 needs to find saxon9he.jar in either /usr/share/java/ or/usr/local/share/java/ then saxon9he.jar will need to be installed into one of those 2 locations - which will be a lot of fun if the user trying to perform that installation doesn't have the requisite permission.

      Maybe send a message to tobyink (the XML::Saxon::XSLT2 author) and ask him how you can use the module if you don't have permission to install saxon9he.jar into either of the allowed locations. (That's not the exact problem you're facing - but the answer could be relevant to your task.)

      Cheers,
      Rob

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1041426]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (10)
As of 2014-04-21 08:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (492 votes), past polls