Hello,
I have to admit the last time I programmed in Java was a data structures class in high school. So please be kind to this Java noob.
I have spent a good deal of time putting together a C# COM library at work. This library relies heavily on some new .Net technologies (WPF being the big one) so translating it into another language is not really an option. I have tested consuming this library from C++ through the COM interface and that was simple enough. I wanted to also prove that this same library could be used from a Java program.
So the problem that I have run into is that I can not find a free or even inexpensive way to use COM objects from Java. I guess the other solution would be to find a way to directly integrate the library. Does anyone have any input on what might be the best way to accomplish this? I am using Eclipse for my java environment. Below is an example of what my C# codes exposure looks like. Thanks for any direction you can provide.
//Example C# Object Code
[Serializable, ComVisibleAttribute(true), Guid("Long Guid String"), ClassInterface(ClassInterfaceType.None), ComSourceInterfaces(typeof(IFooBarStructure)), ProgID("My Application")]
public class MyFooBarObject {
public MyFooBarObject(){}
public string DotNetMethod(){ return String.Empty; }
}