What tools are available for creating in process COM servers in Java?

What tools are available for creating in process COM servers in Java?

Asked by: Lydia589 | Posted: 23-01-2022

Answer 1

J-Integra is the most comprehensive, complete solution you will probably find for using COM and Java together. The software has been used by many commercial products, big and small, to integrate COM and Java (both directions).

Answered by: Joyce99 | Posted: 24-02-2022

Answer 2

jacob-*-x86.dll and accompanied jacob.jar

Used it successfully to connect to TestDirector (which uses DCOM). Little bit tricky with memory management, but even .NET guys calling COM have troubles doing it. link text

Answered by: Alina490 | Posted: 24-02-2022

Answer 3

Any software used to access COM from Java (or another platform) is known as a "COM bridge".

The j-Interop project on sourceforge may be worth checking out.

Answered by: Lydia291 | Posted: 24-02-2022

Answer 4

Another alternative is JNI Wrapper/ComfyJ - it allows you to either generate Java proxy classes or use IDispatch. You can also trap and broadcast events (IConnectionPoint) and implement COM servers.

Answered by: Blake280 | Posted: 24-02-2022

Similar questions

java - how to Invoke process action aftter creating it?

i am writing simple class which create a process and i wish to use the actions(methods) this process can do and i dont know how.. my simple method is : public void initProcesses() { Process pA; Process pB; Process pC; try { pA = Runtime.getRuntime().exec("java -cp ProccesA.java "); Class<ProccesA> a = pA.getClass&l...

java - Creating a batch file to kill a process

This question already has an answer here:

mysql - Java process out of memory when creating thread on CentOS 6

I get this error basically less then an hour after i fire this nohup java -cp server.jar:mysql-connector.jar com.server.test.EchoMulti &. The error: Exception in thread "main" java.lang.OutOfMemoryError: unable to create new native thread at java.lang.Thread.start0(Native Method) at java.lang.Thread.start(Unknown Source) ...

java - JBPM process creating issue

I have a jboss seam and JBPM integrated application that is working fine. I put my own servlet in it, but through that servlet when i try to create a JBPM process i am facing exception mentioned below. org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect): [org.jbpm.graph.exe.Token#2763785] Here is co...

linux - Java process - find which class is creating pipes

One of my process is getting 'too many open files' error. Using 'lsof' I see many (~5000) pipes, e.g. below sample. Is there a way to find which class is creating so many pipes? From my limited understanding, opening connections, streams would result in creating pipes. I am not sure if it's my class or one of the many dependant jars. Thanks. lr-x------ 1 user general 64 2016-02-26 18:18 990 -> pipe:[4272...

Java: Process Builder creating zombies

Am I doing anything wrong here? Not handling a stream properly? I run a process here (specifically: mvn exec:java) and the process does not terminate, even if I run p.killForcibly(). If I go to the commandline and attempt a taskkill /F /PID on the pid I get from the flapdoodle library, I get "access denied" and the process lives on. try { P...

c# - Creating cmd Process that runs java

In my c# code I have processInfo = new ProcessStartInfo("do.cmd"); processInfo.CreateNoWindow = false; processInfo.UseShellExecute = false; and in my do.cmd I have @echo off set CONFIG_FILE=./some.properties set DEFCONFIG_FILE=./more.properties set EDA_ARGS=-config %CONFIG_FILE% -defaultconfig %DEFCONFIG_FILE% set JAVA_ARGS=-Xmx256M set BOOTCLASSPATH=../lib/1.jar;../lib...

linux - Creating a Nohup Process in Java

Using ProcessBuilder, I've been trying to create an independent process that doesn't get terminated when the JVM gets terminated, but nothing seems to work. I've tried /usr/bin/nohup commands, but that still seems to terminate when the JVM that launched it is terminated. Is there any way to accomplish this in Java?

jar - Java error when adding and creating zip files: The process cannot access the file

I made a Java program using Java ZipFileSystem (Java 8) to archive files into zip files. I thought it'd be simple and straightforward, but after running for a while, it craps out with "java.nio.file.FileSystemException". Code snippet below: ...... fileName = fileName + "_"; int zipFileNameMidPart; try (DirectoryStream<Path> dirStream = Files.newDirect...

java - What is the best format to use when creating a mail list for use in a Word 2007?

I'm writing a web app (Java) which allows users to select contacts. The contacts details can be downloaded (currently in CSV format) and used to perform a mail merge in Word 2007. I would like to use a format which is a bit more 'robust' than CSV. Those of you in non-English areas will know the comma/semicolon problems! Which format would you use?

java - JSP: Creating Graph

What would be the simplest way to create some graphical representations of the usage of electricity by month?

Creating tables in a MS Word file using Java

I want to create a table in a Microsoft Office Word file using Java. Can anybody tell me how to do it with an example?

java - 3rd party jars creating log files

So we ran into an interesting issue today. We have a Java EE web app that uses a bunch of 3rd party jars. This includes Hibernate. We use the Java logging api that comes with the SDK for logging purposes. Typically we are pretty thin on logging but we ran into this issue with one of our 3rd party jars using log4j to create it's own log file. Not only was it logging statements from it's own code, it even started wri...

How can I get started creating a Java web service?

I want to create a simple hello world java web service. What tools I need to get started? What do I need to know to get started deploying this in Tomcat?

java - Creating a process from within an instance of Jetty that was launched from Maven

I'm looking to launch a separate Java process from within an instance of a Spring controlled bean that runs in a Jetty container. The Jetty instance was launched from mvn jetty:run This separate process communicates with the launching process via RMI and I'd like to be able to maintain a hook to the process's ID or Process object so that I can kill it later if I need to. The way we are current...

java - Creating raw packets to spoof UDP Packets

I am looking to spoof UDP packets using Java. Are there any good Java libraries out there that allow you to create your own RAW SOCKETS?

java - Creating multiple log files of different content with log4j

Is there a way to configure log4j so that it outputs different levels of logging to different appenders? I'm trying to set up multiple log files. The main log file would catch all INFO and above messages for all classes. (In development, it would catch all DEBUG and above messages, and TRACE for specific classes.) Then, I would like to have a separate log file. That log file would catch all DEBUG messages ...

Looking for a simple Java API for creating graphs (edges + nodes)

Closed. This question does not meet Stack Overflow guid...

java - Creating animated GIF with ImageIO?

Has anybody managed to convince ImageIO to write an animated GIF, and in particular setting the correct metadata? My first attempt is roughly as follows (where b1 and b2 are BufferedImages): ImageTypeSpecifier spec = new ImageTypeSpecifier(b1); ImageWriter wr = ImageIO.getImageWriters(spec, "GIF").next(); wr.setOutput(ImageIO.createImageOutputStream(new File("C:\\Flashing.gif"))); ImageWriteParam param = wr...

Still can't find your answer? Check out these amazing Java communities for help...

Java Reddit Community | Java Help Reddit Community | Dev.to Java Community | Java Discord | Java Programmers (Facebook) | Java developers (Facebook)