Automation query... Plz help
Steven D'Aprano
steve+comp.lang.python at pearwood.info
Tue Jan 30 20:37:54 EST 2018
On Tue, 30 Jan 2018 16:00:43 +0530, Prahallad Achar wrote:
> Luckily application supports headless automation now question is how to
> invoke those jar using python.
I can see two approaches:
(1) Calling the jar directly from Python.
I don't think you can do that from CPython, but you might be able to do
it from Jython. (Jython is Python implemented in Java, and is designed to
allow Java and Python code to call each other). Or there might be some
third-party library that runs under CPython which allows you to do so.
(2) Call the jar as an external process, in whatever way you would call a
jar from an external application.
Have you tried googling?
https://duckduckgo.com/html/?q=call%20a%20jar%20from%20python
(I think this is the limit of any help I can give -- I know nothing about
jars except that they are some sort of Java code.)
--
Steve
More information about the Python-list
mailing list