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
0
votes
1 answer

How to retrieve CATIA Part object with com4j for java

I’ve tried to use com4j to get the PartDocument of a Catia file but when I get the object it was a Document object and not a PartDocument object. By consequent I cannot access to the method “part” of my object. I try to cast Document to PartDocument…
tao
  • 3
  • 3
0
votes
1 answer

Com4j leaks with DirectByteBuffer, Cleaner, Finalizer, Variant instances

I have a Java project which works with one dll library via COM. I have Windows 7 and I use 32bit Java 1.6. I use 2012/04/26 release of com4j as a bridge. It works. The problem is that I have a serious memory leak which makes operation of my program…
MiamiBeach
  • 3,261
  • 6
  • 28
  • 54
0
votes
1 answer

Using COM4J to create excel file

I am receiving a null pointer exception when trying to launch an instance of excel to export data to. I have tried adding the newest version of COM4J.jar to my netbeans project. I would appreciate any suggestions on how to find what the problem with…
AWilliams
  • 3
  • 1
0
votes
1 answer

How to get Sub folder name using Test ID in HP QC OTA Java

Actually need to get SubFolder name using Test ID which is present under Test Plan > Subject > Sample(Folder Name) > Scenario (Sub Folder) > TC1 (Test- BPT) I need to retrieve Scenario as subfolder name using TestID Here is my code…
Ganeshja
  • 2,675
  • 12
  • 36
  • 57
0
votes
1 answer

How to get QC OTAClient dll version that registered using com4j

I'm trying to update test results from TestNG and using com4j to connect from java. i was able to connect to QC but while accessing the test lab node i'm getting below error. While searching through forums i found somewhere that it may be older…
Karthi
  • 479
  • 2
  • 9
  • 21
0
votes
1 answer

Access each Bug item after filtering and creating newlist in QC using com4j

I am able to connect to hpqc using com4j and also able to filter the defect. Now i need to access each item of the buglist. I am able to access for a single defect like : IBug bug =…
pvash
  • 23
  • 1
  • 7
0
votes
2 answers

error while connecting to hp Quality Center using com4j

i m trying to connect to hp qc version 10.00 using com4j library in eclipse on Win7 I followed the following steps: Created the wrapper for the OTAClient.dll using tlbimp.jar Registered OTAClient.dll using regsvr32 Imported the OTAClient Wrapper in…
pvash
  • 23
  • 1
  • 7
0
votes
1 answer

Quality Center V11 Script Stats using Java and COM4J

I am trying to access ALM V11 (QC) Test Script details like Passed/No Run for particular project using Java but i am getting null. Can someone please help me on this? Error I get: java.lang.NullPointerException at…
VBJ
  • 673
  • 5
  • 14
  • 24
0
votes
1 answer

Retrieve the Window Title using Com4J

I have a MS Office bridge using COM4J in a java application and I am trying to retrieve the window title of a word application. There is a way to do this?
Marcio Barroso
  • 783
  • 1
  • 7
  • 21
0
votes
0 answers

Get a PID ( process id ) from a COM4J object

I am using COM4J to generate MS Office documents, but some times a process stop working. I would like to know if there is a way to identify a PID of a application created using COM4J. With the process id, I will kill the process that is blocking my…
Marcio Barroso
  • 783
  • 1
  • 7
  • 21
0
votes
1 answer

How do you set a custom line end in visio?

I'm writing a visio export and created a visio template file containing custom line endings. When I try to set those using code, it is not working. //Create two shapes final IVMaster lApp = stencilObj.masters("Application"); IVShape…
Alexander Stolz
  • 7,454
  • 12
  • 57
  • 64
0
votes
1 answer

How to bridge Java to CATIA COM API with com4j

Here is the C++ code: #import "path\to\catia\intel_a\code\bin\InfTypeLib.tlb" no_namespace // ... ApplicationPtr catia; catia.CreateInstance("CATIA.Application"); catia->PutVisible(VARIANT_TRUE); I want to call the same CATIA API in Java with…
Yuan
  • 1,147
  • 11
  • 16
0
votes
0 answers

Com4j and Proguard obfuscation

Com4j integration works fine in my Java application, but not when using Proguard obfuscation (other options turned off). What could I be doing wrong ? Program hangs at at the COM4J.createInstance(...). I have seen this code stop at the same…
carl
  • 501
  • 3
  • 10
-1
votes
1 answer

Com4J MS Sapi Helper Functions

I've got problems with generating the Helper Functions of MS Sapi 5.4 with Com4j. I have to replace the combination of SAPI and Java/JNI with Com4j. For Example, I want to use the AssignFormat Method of CSpStreamFormat. A simple text to speech was…
S. J. P.
  • 1
  • 1
-1
votes
1 answer

Error 80004005 when connecting to AD from Java application

We have a Java web application served from Apache Tomcat 6. Our users are stored in a Windows 2008 R2 active directory. The application connects to the AD using COM4J from the org.jvnet.com4j.typelibs library version 1.0 For example, we search an…
Goyo
  • 455
  • 1
  • 9
  • 23
1 2 3 4
5