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
1
vote
3 answers

How to use JACOB in an OSGi application?

I have an OSGI (more precsiely a Wisdom framework-based) application in which i would like to use the JACOB library to interact with Office (the goal being to transform PPT into images). I can easily add the JACOB jar to my CLASSPATH, but JACOB…
Riduidel
  • 22,052
  • 14
  • 85
  • 185
1
vote
2 answers

How do I use a 32 Bit COM object from a 64 bit process?

I Use Jacob (JAVA COM Bridge) on a 64 Bit Machine and want to load COM Objects from a 32 bit DLL. How can I do that?
Hannes de Jager
  • 2,903
  • 6
  • 37
  • 57
1
vote
1 answer

Jacob Error: Can't get object clsid from progid

I'm trying to run Vissim 8 (student version) using java and to do that I'm using jacob. Now I'm not sure what I'm doing wrong because I'm new to jacob. This is the code I'm trying to run: import com.jacob.activeX.ActiveXComponent; import…
Nino Korent
  • 31
  • 1
  • 7
1
vote
1 answer

outlook customized folder's integer value for jacob.jar in java

I know, I can access using Store.GetSearchFolders().Item("xxx"). I want to get the integer value for that folder. Is there any way to do that ?
Venkatesh
  • 1,537
  • 15
  • 28
1
vote
0 answers

A COM exception has been encountered: At Invoke of: AddItem Description: 80004002 / No such interface supported

I am trying to invoke one function of a C# application from Java application using Jacob COM interface. I got the ActiveXComponent from the registry entry. I have to call one method BaseElement AddItem( string name, ElementType type ) here…
Livin
  • 41
  • 1
  • 8
1
vote
2 answers

Save Word Document with JACOB (Java)

i'm trying to make a simple Java program to open an existing word-document, change something and save it as .html-file. The part which is not working is to save it as .html . The problem is, i got the html-file but it's only a renamed doc-file. So…
Tronje182
  • 80
  • 1
  • 9
1
vote
1 answer

Can't figure out how to register dll to avoid "Can't get object clsid from progid"

I am trying to use autoit with java, and have installed AHK and the jacob bridge to autoitx4java.AutoItx. I have the jacob dll (jacob-1.18-86x.dll) stored in windows/syswow64 . When I try to compile the program (imports are import…
user3476534
  • 220
  • 1
  • 4
  • 15
1
vote
1 answer

Issue calling method in ActiveX Control (.ocx) via Java

My end goal is to get a JPG from a fingerprint scanner inside my Java application. I don't need to do any recognition or logins. I have a Topaz IDGem LCD 1x5 signature pad / fingerprint scanner. The SDK they provide for the fingerprint scanner part…
Dominic P
  • 2,284
  • 2
  • 27
  • 46
1
vote
1 answer

"com.jacob.com.ComFailException: Can't find moniker" Why?

I use jacob last version and jacobgen. I put all need dll in c:\windows\system32 I generated wrapper about dll by jacobgen. But I got an exception. Google didn't help. :( com.jacob.com.ComFailException: Can't find moniker May be need registy dlls in…
Tim
  • 51
  • 2
  • 5
1
vote
2 answers

Jacob com.jacob.com.ComFailException: Can't map name to dispid:

I've been trying to call a dll function from Java using Jacob without any success. I have done registration of the dll with regasm as described here - http://www.dreamincode.net/forums/topic/114094-using-dll-library-in-java-application-using-jacob/.…
Uncle Boni
  • 125
  • 1
  • 7
1
vote
0 answers

Getting Exception as "Can't map name to dispid: IniRead" while using Iniread function of AutoItX in java

I am using AutoItx and Jacob library and trying to read the ini file using below command in Java. autoItxObj.iniRead("C:\Users\path\Locale.ini","LOCALE","en_US","KEY NOT FOUND"); but i am getting exception as Can't map name to dispid: IniRead. How…
Rupali
  • 26
  • 5
1
vote
2 answers

ProgID and file extension relation

I am working on a program using the JACOB project (JAva COm Bridge). There is a file to open, the entire name is passed along (ex. c:\test\test.xls). In order for JACOB to create a new ActiveXComponent it needs to be passed a ProgID or CLSID. …
user276557
1
vote
1 answer

Reading BSTR in JAVA through JACOB

I am trying to access a device through a COM object in a JAVA interface. The particular call (as described by the manufacturer) is: Name: ScanUSB Parameters: [out] VARIANT* serialNumbers Use: serialNumbers is a pointer to a VARIANT containing an…
carsonc
  • 85
  • 7
1
vote
1 answer

Java JACOB WMI query for local group membership

I am researching how to pull the members of local groups on machines using JACOB. What I can do: Pull a list of local groups from the machine using separate WMI query. What I can't do: Pull the members of these groups. I used the below article to…
1
vote
1 answer

Cannot pass java.lang.long to com.jacob.activeX.ActiveXComponent.invoke

I'm trying to pass java.lang.long variable to com.jacob.activeX.ActiveXComponent.invoke but I get below exception: com.jacob.com.ComFailException: A COM exception has been encountered: At Invoke of: SomeMethod Description: 8002000a / Out of present…
fallektcz
  • 151
  • 2
  • 9