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
0
votes
2 answers

Error on running JACOB example

I'm working on excel using jacob library. I'm trying to interact with excel with basic operation. I'm executing below code and getting an error. What should I do? Exception in thread "main" java.lang.UnsatisfiedLinkError:…
user1137146
  • 285
  • 1
  • 3
  • 14
0
votes
1 answer

bindtomoniker java equivalent in COM

I have used the Java Jacob library to communicate with inedesign server application which exposes a COM interface. Normally you would communicate via a clsid or programid.Eg - this.gApp = new ActiveXComponent("Indesign.Application"); So far so…
Javadev
  • 3
  • 3
0
votes
2 answers

JACOB library fails when used in multiple threads

I have a strange problem using JACOB from two consequently started identical threads. I have a utility class that uses a static ActiveXObject field for dispatching various requests to the WMI. The first thread works fine. When the second thread is…
Alex Fedulov
  • 1,442
  • 17
  • 26
0
votes
1 answer

How to grab a worksheet

I tried com4j but when I try to generate the wrappers it just gives Native exceptions. So in JACOB, how do I iterate through the worksheets in a workbook? I want to delete the original worksheets that are created with a new workbook, then create my…
user328898
0
votes
2 answers

Accessing Sheets, Saving Excel files, Java, Java Com Bridge ( Jacob jacob-1.16)

I looked at the included Excel example of the latest version of Java Com Bridge (jacob-1.16) and was a little disappointed because it creates and works on a brand new Excel file. What I would like to do is having access to an existing Excel file…
abarnai
  • 1
  • 1
  • 1
  • 3
0
votes
0 answers

using Jacob call office "saveas" to pdf very slow

Server Info: 4Core 8G Memory Office 2016 VL Windows Server 2012R2 testing file about 50mb size need takes over 800 seconds! private static void wordToPdf(String wordFile, String pdfFile, String application) { …
0
votes
1 answer

java.lang.NoSuchFieldError: com.jacob.activeX.ActiveXComponent.m_pDispatch J

File file = new File("lib", "jacob-1.20-x64.dll"); System.setProperty(LibraryLoader.JACOB_DLL_PATH, file.getAbsolutePath()); AutoItX x = new AutoItX(); String Openfile = "Open"; try { Thread.sleep(2000); } catch…
0
votes
3 answers

How to saveas Excel File using Jacob (Java)

I am trying to saveas excel file, but it gives an error: Can't map name to dispid: FileSaveAs. private ActiveXComponent objExcel = new ActiveXComponent("Excel.Application"); excelObject = objExcel.getObject(); Dispatch.put(excelObject, "Visible",…
Probe
  • 1
  • 1
  • 1
0
votes
0 answers

Problem with Jacob.jar - com.jacob.com.ComFailException: Can't get object clsid from progid

I have a development in Java using DB Postgres, and we have running a serial of applications to create digital invoices according to the local gov tax department. When the program calls to jacob to negotiate, we have this exception and the program…
0
votes
1 answer

Create and Save Outlook e-mail in Java Jacob library

HI I'm trying to create Outlook e-mail from Java I'm working with Windows 10 and Outlook 365 desktop version I'm able to do it with AposeEmail https://docs.aspose.com/email/#asposeemail-for-java and with jotlmsg https://github.com/ctabin/jotlmsg But…
PawDob
  • 11
  • 5
0
votes
1 answer

Jacob, Can't co-create object

My setup: I'm trying to create a web-API that converts a docx file to pdf using the Java-COM-Bridge known as Jacob. Current state: I have it working on my local machine (Windows 10), when I run the project from IDE. I also have the project working…
Folkmann
  • 6,131
  • 3
  • 13
  • 14
0
votes
0 answers

How to recieve a Byte array using JACOB?

I am writing a software in java and using JACOB to invoke methods of a library of type .dll, I am also using Variant to send the input parameters and receive the return values. One of the functions have a return value of byte array. How to use…
0
votes
1 answer

Java Desktop.browse occasionally returning "requested lookup key not found in any active activation context"

I am really struggling with this issue as it seems to occur randomly for me. When I call, Desktop.browse("some url"); Internet Explorer will not display. The exception message is as follows, The requested lookup key was not found in any active…
maple_shaft
  • 10,435
  • 6
  • 46
  • 74
0
votes
2 answers

java-Can not access ActiveX application "com.jacob.com.ComFailException: Can't get object clsid from progid"

I am trying to make face detect and compare code. Now For this project, I am going to use ZZActiveX2.0. So I used jacob to access Active X. I downloaded jacob-1.19 and copyed jacob-1.19-x86.dll to System32 and register jacob-1.19.jar in my java…
0
votes
1 answer

How to make a method for that part of SAP-GUI script using Java and JNI?

I have some methods already that I'm using for connecting to SAP GUI Scripting Engine using Java & JACOB library - I'm somehow unable to make one more method I'd like to use. I am using…