Questions tagged [jacob]

JACOB is a JAVA-COM Bridge that allows you to call COM Automation components from Java.

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.

https://sourceforge.net/projects/jacob-project/

206 questions
2
votes
1 answer

Trouble adding a library to an Eclipse Project - UnsatisfiedLinkError

I'm trying to add the JACOB library to one of my java projects so that I can link up to iTunes and do some things with it. I've followed the instructions at this…
Riptyde4
  • 5,134
  • 8
  • 30
  • 57
2
votes
0 answers

JACOB Create object using file location rather than ProgramID

I'm trying to use JACOB to access the AutoitX library, however I would like to load the library via file locatio rather than through the registry. Is it possible to do this in JACOB? This is the code I have: ActiveXComponent autoitX = new…
2
votes
2 answers

JACOB can't co-create Outlook 2010 object

On Windows 7 32 / 64 bit with UAC enabled and Outlook 2010 running I receive a ComFailException when attempting to create new ActiveXComponent via: ActiveXComponent axOutlook = new ActiveXComponent("Outlook.Application"); Has anyone found a source…
user3826668
  • 145
  • 1
  • 2
  • 8
2
votes
1 answer

Better Code Using Jacob and WMI

I am using JACOB to access system information through WMI. I have not found much documentation for WMI and Jacob on the web and was wondering if I could get some help in making the code a little more efficient. Here is the code: …
Stephen Watkins
  • 25,047
  • 15
  • 66
  • 100
2
votes
0 answers

How to write/change a visio file with java (jacob)

I wasn't able to find anything useful about how to write a visio file with java, and probably looked through every article on the web. If found a lot of stuff about doing it with c#, vb, and other stuff but couldn't find what I need. I also found…
Snow
  • 29
  • 2
2
votes
0 answers

JACOB event registration

I'm trying to use JACOB to obtain a callback whenever a slide show starts or ends using the following: public class Test { public static void main(String[] args) { ActiveXComponent oApp = new ActiveXComponent("PowerPoint.Application"); …
Michael Berry
  • 70,193
  • 21
  • 157
  • 216
2
votes
1 answer

Jacob : calling vb function in Excel file without invoking "Open" statement

I'm using Jacob to call a VB function that resides in a Macro in an Excel file. Here is my code : [I pass the file and the vb function name as paramaters to the below java method] private static void callExcelMacro(File file, String macroName) { …
javadev
  • 1,639
  • 2
  • 17
  • 35
2
votes
1 answer

Dispatch not hooked to windows memory

Sometimes I get an error (exception): java.lang.IllegalStateException: Dispatch not hooked to windows memory What does it mean? How to prevent it? This is a sample code that results in this error: import com.jacob.activeX.*; import…
Jarekczek
  • 7,456
  • 3
  • 46
  • 66
2
votes
0 answers

Jacob and wireless

I am using Jacob to find out the MAC addresses of all access points that are detected by my wireless NIC. According to WMI documentation Ndis80211BSSIList is: "The list of in-range BSSIDs and their properties". As far as I can understand it returns…
user1304490
  • 181
  • 2
  • 2
  • 11
2
votes
1 answer

Jacob - Word file correctly opened in 32bit and not in 64bit

I have a java web-application which uses the jacob library (running both in 32bit and in 64bit) to create/open word files. It correctly runs on my machine (32bit), it means that the word application is launched and the word file is opened. The…
mrod
  • 23
  • 3
1
vote
1 answer

Weird Clojure Box - library (dll) issue

I am trying to use the JACOB library with Clojure using Clojure Box. I have added this to my .emacs: (setq swank-clojure-library-paths (list "c:/dev/dlls")) C:/dev/dlls/ contains the jacob-1.14.3-x86.dll. I have added a .clojure dir to my ~/ dir…
mac
  • 9,885
  • 4
  • 36
  • 51
1
vote
0 answers

How to call a com method with out paramter by Jacob?

I want to use Jacob for doing task with COM. But I can't find any way to invoke a method which has a out parameter, Can you provide me this sample code. Thanks.
maxupeng
  • 11
  • 2
1
vote
0 answers

How to call an ActiveX method through java when control doesn't allow automation (com4j/jacob)?

I have to integrate to an ActiveX control that doesn't allow for automation (no IsInvokeAllowed implemented to return true) through Java. Up to now, the best java libraries for COM integration in my research are com4j and jacob. When trying to…
fcarriedo
  • 176
  • 6
1
vote
1 answer

NoSuchMethodError using JACOB

I have beeen using JACOB in my java program to work but I run into an error everytime I try to get an ITTrack from an ITTrackCollection. This is the line that gives the error: a.add(t.getItem(1)); This is the error: Exception in thread…
Connor Pearson
  • 63,902
  • 28
  • 145
  • 142
1
vote
1 answer

How to pass out argument of type BarTender.Messages

I try to integrate Java application with Bartender Seagull ActiveX interface using jacob 1.19 library. I have a problem with print method because I do not know how to call this method from jacob. I tried following code: public void print( String…
Mariusz
  • 1,907
  • 3
  • 24
  • 39