I'm rewriting a script that uses COM to automate a windows application, and I'd like to rewrite it in Java. The thing is, the COM libraries seem a little outdated, and I don't want to waste time with code that doesn't work. Is there anything you tried and worked?
+5
A:
Have you looked at JACOB? Last updated June 8, 2009.
JACOB is a JAVA-COM Bridge that allows you to call COM Automation components from Java. It uses JNI to make native calls to the COM libraries. JACOB runs on x86 and x64 environments supporting 32 bit and 64 bit JVMs
William Brendel
2009-06-27 23:09:18
I can recommend this also, have used it before successfully...
Jon
2009-06-28 01:42:12
Thanks! I'll try it!
Geo
2009-06-28 09:00:56
I can also recommend this - have used it in several projects, and it works perfectly (just be sure you release references in finally blocks - we get lazy having the GC!). I will say that true COM programming (which Jacob exposes) is not for the uninitiated. Take the time to find a good book on the subject before trying to delve into Jacob.
Kevin Day
2009-06-30 03:58:38