Questions tagged [com4j]

a Java library that allows Java applications to seamlessly interoperate with the Microsoft Component Object Model; a Java tool that imports a COM type library and generates the Java definitions of that library.

75 questions
1
vote
0 answers

Where is the type library defining IDispatch located?

I'm trying to use com4j to set up a simple Java app which can interact with the IDispatch COM interface. Normally with com4j you would use the tlbimp.jar tool to generate a com4j Java interface whose instances will proxy IDispatch. The com4j docs…
0xbe5077ed
  • 4,565
  • 6
  • 35
  • 77
1
vote
1 answer

access defects from HP quality center using com4j (java)

i have been able to connect with HP QC project using com4j. But now i want to be able to access the Defects using filters. I dont know the actual field names of all the fields as i do not have admin rights for QC, so i cannot go to customization…
pvash
  • 23
  • 1
  • 7
1
vote
2 answers

Specify max results with Com4j when querying LDAP

I'm trying to query ldap with Com4j to retrieve all internal employees. The code below works, but always returns 960 results while there should be thousands. It there a way to specifiy the maximum results size or should I do things a bit…
tstorms
  • 4,941
  • 1
  • 25
  • 47
1
vote
1 answer

Why is my Com4J interface hanging during iteration?

I have to interface a third party COM API into an Java application. So I decided to use Com4j, and so far I've been satisfied, but now I've run into a problem. After running the tlbgen I have an object called IAddressCollection which according to…
JRSofty
  • 1,216
  • 1
  • 24
  • 49
1
vote
1 answer

Getting Test Case List from QC using Com4j

I have written the following code to retrieve the list of Test Cases from QC, but the tsTestFactory is null, whereas when I evaluate qcConnect.testSetFactory() it returns a Com4j object. What am i doing wrong here ITestSetFactory tsFactory =…
Vivek
  • 2,091
  • 11
  • 46
  • 61
1
vote
2 answers

COM4j unable to connect to HP Quality Center

Im am trying to generate interfaces of HP Quality Center OTACLien.dll using com4j. I use following command and get this error. com4j version 20110322 OTAClient.dll version 9.1 E:\dum>java -jar tlbimp.jar -o "e:\OutPutofDLL" -p ota…
Gaurav
  • 1,534
  • 2
  • 14
  • 23
1
vote
1 answer

Java Com4j interface for Abbyy on win7 64bit

I’m currently trying to upgrade à Java solution using ABBY OCR from Windows XP 32bit to Windows 7 64bit. A bridge using com4j exist between the two. Generation of the new interphases works well, but use it or the older generate this stack…
1
vote
1 answer

Using com4j and Quality Center to add design steps to test

All, I am using com4j to manipulate Quality Centre and can successfully create test plans and labs, nested folders and actual items in both. I am now trying to add design steps to a test e.g.: ITestFactory iTestFactory =…
brookesi
  • 46
  • 4
0
votes
2 answers

@Optional annotation not found

I'm using com4j to generate Java type definitions from a COM type library. The generated code contains a lot of uses of the @Optional annotation, for example: @DISPID(14) //= 0xe. The runtime will prefer the VTID if present @VTID(23) void mail( …
Fergal
  • 5,213
  • 6
  • 35
  • 44
0
votes
1 answer

Subscribing to COM Events with Com4j

I'm trying to hook into a proprietary network stack from Java. The stack is provided by a COM object, and I've managed to hook into it using com4j. Unfortunately, the network stack is event-based, so I need my code to issue requests and subscribe to…
MusikPolice
  • 1,699
  • 4
  • 19
  • 38
0
votes
1 answer

com4j works in eclipse but not working in jar

I wrote a tool (using spring boot) to get the details from HP QC v10. I'm using com4j API for this. Program works fine in eclipse but throws following Exception when I'm running code through jar (which I have created using maven install). I have…
user1480133
  • 177
  • 1
  • 6
0
votes
2 answers

Failed to execute COM class: com4j.ComException: 80040154 CoCreateInstance failed : Class not registered : .\com4j.cpp:153

I'm trying for some days to execute a ".dll" file from an JAVA application. If you are interested you can read my first question: Call a .dll function using command line I used "com4j" to create the COM classes for my DLL. The generated classes…
NicuVlad
  • 2,491
  • 3
  • 28
  • 47
0
votes
1 answer

Accesing ReleaseFolderFactory in ALM using Java, Com4j

I have connected HP ALM 12.5 with Java through wrapper class via Com4j. To get release and cycle details, I need to access ReleaseFolderFactory object. Could you please help me to find the way using Java? Any help will be highly appreciated.
0
votes
3 answers

Need to pass test case in QC through Java

Could any one help me in below issue I want to pass test cases in QC through Java, I used con4j and reached till test sets but I am unable to fetch the test cases under respective test set. could any one please help me in how to pass test cases in…
0
votes
1 answer

Print MSWord-Document with com4j

I'm trying to print out a .doc-File with com4j. This is my Code: document.printOut2000(true, false, WdPrintOutRange.wdPrintAllDocument, newDocumentPath, _, _, WdPrintOutItem.wdPrintDocumentContent, 1, _, WdPrintOutPages.wdPrintAllPages, true, true,…
Tronje182
  • 80
  • 1
  • 9