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
in reply to Re^2: Inline Java and standalone executable
in thread Inline Java and standalone executable
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.)