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
48
votes
6 answers

What is LD_LIBRARY_PATH and how to use it?

I take part in developing a Java project, which uses some C++ components, thus I need Jacob.dll. (on Windows 7) I keep getting java.lang.UnsatisfiedLinkError: no JacobDB in java.library.path no matter where I put Jacob.dll.... I looked for possible…
karla
  • 4,118
  • 5
  • 32
  • 39
8
votes
1 answer

JACOB Catastrophic Failure Invoking an .OCX Method

Hi I am currently task to convert a legacy Visual Basic 6 Application that communicates with the a Passbook Printer via third Party Application XFS.ocx (No source). Based on my research I could JACOB to do this task but I am encountering an error.…
Jefrey Valencia
  • 673
  • 3
  • 12
  • 28
8
votes
6 answers

How to configure .dll file in Java?

I am using Jacob jar file in my java application. This Jacob jar file comes with a .dll file. I have added Jacob jar file to my classpath. But when I execute my application a runtime error occurs as "couldn't load jacob-1.15-M3-x86.dll file" How…
Yatendra
  • 31,339
  • 88
  • 211
  • 291
8
votes
2 answers

com4j versus jacob to call COM methods from Java

I maintain a legacy Java application that uses Jacob, or Java-COM Bridge, to make calls via the COM interfaces of MS VBA and MS Word. I have been looking at com4j from Sun, and it looks promising. The reason it looks good to me is that it uses…
Stephen Harmon
  • 845
  • 2
  • 9
  • 15
8
votes
1 answer

Java 7: COM-API does not work with Quality Center (OTAClient.dll), but works with Java 6

We are running on Windows 7 Enterprise, SP1, 64bit. We just installed Java 7 on all our machines, which causes the following problem: When my program tries to communicate with the OpenTestArchitecture-API from Quality Center it fails to create the…
oliver31
  • 2,343
  • 2
  • 18
  • 24
7
votes
2 answers

Count logons and logoffs on computer Windows 7

I want to count the number of logons and logoffs on users of their computers. I take the information for logons/logoffs from the Windows event logs (from Win32_NTLogEvent WMI class). For example with following query: select * from…
7
votes
2 answers

Office 2007 is unable to open files when called through JACOB from a service

I'm using JACOB to do COM calls to PowerPoint and other Office applications from Java. On a particular Windows 7 box I'm getting the following message quite often, but not always: Source: Microsoft Office PowerPoint 2007 Description: PowerPoint…
Sindri Traustason
  • 4,985
  • 5
  • 44
  • 63
5
votes
0 answers

create ActiveXComponent using JACOB is slow under citrix

I've created an application which uses JACOB to generate Word-Files. Which works perfect for me. But now we had to migrate the workstations to citrix. Now the application is very slow. I've found out that the most time is lost generating the Word…
griFlo
  • 1,821
  • 16
  • 26
5
votes
1 answer

How to disable VB6 MsgBox from java Code using Jacob

I'm using JACOB API to call some Sub from VB macro. I would like to block the MsgBox generated by this macro. This is my code to open macro XXXX.xls and run the sub traiteOT who contains some MsgBox. `private static void callExcelMacro(File…
khaled Rihane
  • 547
  • 2
  • 6
  • 17
5
votes
2 answers

Create a playlist in iTunes with COM and Java

How do I create a playlist in iTunes from Java, using COM (on windows i.e. no AppleScript)? I have found a library here that does most of what I need, and I have added some code to ITPlaylist.java, to call the "AddTrack" method (mentioned in the…
l0st3d
  • 2,632
  • 1
  • 24
  • 29
4
votes
2 answers

Passing Enumeration value using Jacob bridge (COM/ActiveX)

Does anyone know if there's a way to pass an enumeration value using Jacob? ComObj.ComEnum.enumVal1 ComObj.ComEnum.enumVal2 I'd like to pass enumVal1 or enumVal2 as a Variant. o.invoke("Action",new Variant("enumVal1")); \\just pseudo code
Fredrik L
  • 1,670
  • 4
  • 21
  • 26
4
votes
1 answer

JACOB and 64bit JVM-does it work?

We have been working fine using JACOB to produce PDFs using a 32 bit JVM for many years without a problem, using Jacob.jar and Jacob.dll. We now need to upgrade to 64 bit JVM for various reasons. I have downloaded the latest Jacob.jar and dll for 64…
yogibeare
  • 41
  • 3
4
votes
1 answer

Can someone explain how to convert VB code to Java with JACOB?

I am trying to create a word document from a template via JACOB/JAVA. I can't seem to find any decent documentation on JACOB. Can someone please explain how Dispatch works (.get | .put | .toDispatch)? I am trying to convert the following code to…
Cole
  • 329
  • 4
  • 14
4
votes
1 answer

Use external dll library in Jenkins plugin

To use an external com object I have to include the Jacob jar and dll library into my Jenkins plugin. I found the jacob_excel_reader plugin which use Jacob, but the solution doesn't satisfy me. The developer added the jar dependency to the pom.xml…
Sascha Vetter
  • 2,243
  • 1
  • 17
  • 35
4
votes
0 answers

JACOB java lib, running ActiveX object get error Catastrophic failure when calling function

I'm trying to use an ActiveX COM object library ocx to control a camera in java. I've try to use JACOB lib to call the lib but I got the following error calling any function or even a put: run: The Library been loaded, and an activeX component been…
william pagnon
  • 335
  • 3
  • 16
1
2 3
13 14