osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Automation query... Plz help


Thank you.
Indeed I did a search but couldn't find a right approach.

Jython! Yes.. It supports to call jar file.

As you said... Application support team has to modify few things on
application side where object creation should be public rather protected

On 31 Jan 2018 7:12 am, "Steven D'Aprano" <
steve+comp.lang.python at pearwood.info> wrote:

> 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
>
> --
> https://mail.python.org/mailman/listinfo/python-list
>