[java] java & COM

Started by
3 comments, last by jesterlecodeur 23 years, 1 month ago
I have coding a COM dll (in C++). But now I want to acces to it with java (VJ++ in this case). I know it''s posible but the M$ help is not clear to me. They want''s me to devellop a java COM class. Anyone know how to do this?
_______________
Jester, studient programmerThe Jester Home in French
Advertisement
Just a quick warning: Doing COM from Java will utilize some MS extensions to Java.

This is ok if you only use Java for the language side of things, but if you are interested in Java as a platform, forget this.

cheers,

Jens
// Jens
Only Microsoft has made a library that allows linking COM to Java (as far as I know) so this means that if you use the COM libraries with Microsoft J++ then the program *MUST* run using a Microsoft Virtual Machine. Forget about platform independence here.

Anyway, a place to get a white paper is here:
http://www.microsoft.com/java/resource/java_com.htm

Thinking in Java has a short tutorial:
http://www.bruceeckel.com/TIJ2/index.html
in Appendix A on COm/Java integration.

And remember you are using outdated technology. J++ will not be developed any more after the invention of C#. Maybe C# is a better solution for you in your case?

Jacob Marner
Jacob Marner, M.Sc.Console Programmer, Deadline Games
Thx, yes maybe i must read most on C# because java is very strange to me.
_______________
Jester, studient programmerThe Jester Home in French
IBM also provides a Java to Com API called Bridge2Java

http://alphaworks.ibm.com/tech/bridge2java

This topic is closed to new replies.

Advertisement