473,386 Members | 1,606 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Java & C#

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?
Nov 15 '05 #1
3 1535
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]

"pei_world" <pe*******@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
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?

Nov 15 '05 #2
then I want to know if it is possible to use Java Bluetooth APIs in my C#
program by any method

"pei_world" <pe*******@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
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?

Nov 15 '05 #3
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
ci****@jnbridge.com
www.jnbridge.com
Spanning the Worlds of Java and .NET
____________________________________

"pei_world" <pe*******@hotmail.com> wrote in message
news:ui**************@TK2MSFTNGP10.phx.gbl...
then I want to know if it is possible to use Java Bluetooth APIs in my C#
program by any method

"pei_world" <pe*******@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
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?


Nov 15 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Paul | last post by:
Hello, I am researching ideas for a long term project and am currently investigating Java's capability for processing live video feed. I wish to examine digital video feed in real time and do...
1
by: TI | last post by:
Where would you start if you wanted to program perhaps a java application to enable a bluetooth mobile phone to work as walkie-talkie? ( schematics, compilers... ) thanks
0
by: JShurmatz | last post by:
If anyone can shed some light on this problem I would greatly appreciate it. I am unsuccessfully trying to use a database connnection retrieved from a pool configured using Java System Web...
4
by: Lorenzo | last post by:
hi you all, first of all apologies for having cross-posted this message but really i did not know where to post it. please let me know what ng you consider the most suitable for the described...
8
by: redcard | last post by:
Hi, I'm from a VB background but am having to learn Java for a new project we have at work. Can anyone suggest a decent way to learn it (and fairly fast). Will be using JBuilder 7, have a few...
0
by: John Doe | last post by:
Hello, I'm currently working on a little tool that would benefit from having a little embedded script language. Although I have C++ source code available for such a script language, I have 2...
1
by: Dan | last post by:
I wnat to see in browser an status from an device connected on rs232 port The java class for read from serial port is: //Serial.java import java.io.*; import java.util.*; import...
1
by: C.O.Jones | last post by:
Using Oracle 8.1.7 Personal edition on Windows XP. I was experimenting with the DBA tools. I first of all tried to adjust the memory used by my database. Then I attempted to shutdown and...
1
by: Robert Dodier | last post by:
Hello, Sorry for asking what must be a FAQ, but I wasn't able to find the answer. I have an XML document fragment which I want to store as a text string. I want a function to convert any XML...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.