views:

42

answers:

2

I am looking for a best way to trigger windows application automation from Java application. So far I have been using Groovy and Scriptom library to access COM native interface. It is rather straight forward approach, but does not scale well (writing configuration for each of application, reading brilliant COM documentations, testing, testing etc.)

I am looking now for better way to automate windows application from Java application. Is there any java library that could help me? Maybe I should use a non-java framework, e.g., autoit, and call it from Java?

+1  A: 

You can use the JACOB (Java-COM Bridge) project.

It's a Java library that uses JNI to make native calls into the COM and Win32 libraries.

More info (and examples) here and here.

Tomas Narros
Scriptom is a groovy wrapping library around JACOB.
Skarab
I didn't know. Thanks for the info.
Tomas Narros
A: 

There's also a commercial product from http://www.nevaobject.com/ the provides this functionality. I've used older versions without any problems...other than having to understand the challenges around COM.

Jim Rush