Java & C#

  • Thread starter Thread starter pei_world
  • Start date Start date
P

pei_world

Hi,
I don't know if it is possible to Java a class or libeary,
and import it into C# application and use it directly?

should work right?

can anyone tell me how in details?
 
No. There is no native bridge between java bytecode libraries and .NET IL
code.
..NET relies on the meta data contained in the library to know what
classes/types are in there, and what they look like. This information isn't
present, for starters. There are many other reasons as well.

Perhaps a third party company has written a bridge that performs something
like an interop layer for Java libraries, but I haven't seen one.

The other alternatives are to create COM-consumable components from J++ (not
really recommended), or write the Java code in J#, which actually compiles
to .NET IL instead of Java bytecode.

-Rob Teixeira [MVP]
 
then I want to know if it is possible to use Java Bluetooth APIs in my C#
program by any method
 
Hi Pei --

JNBridgePro, our Java/.NET interoperability bridge, allows you to do this.
Check out our Web site at www.jnbridge.com, or contact me for more
information.

Regards,
Wayne
____________________________________

Wayne Citrin
JNBridge, LLC
(e-mail address removed)
www.jnbridge.com
Spanning the Worlds of Java and .NET
____________________________________
 
Back
Top