473,976 Members | 37,737 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

C# to Java Interoperabilit y

What are some people doing to provide interoperabilit y between C# and
Java (on Windows)?

What kind of samples are there available?

I want my C# code to call a Java Class (on Windows).

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 16 '05 #1
6 3579
There are some commercial products such as JNBridge and J-Integra
that allow you to make calls between the different environments
(I haven't actually tried either of these so I can't make any
recommendations .)

-- jeff

"Larry" <do********@nos pamhere.com> wrote in message news:OA******** ******@TK2MSFTN GP15.phx.gbl...
What are some people doing to provide interoperabilit y between C# and
Java (on Windows)?

What kind of samples are there available?

I want my C# code to call a Java Class (on Windows).

Nov 16 '05 #2
You could perhaps compile the Java-stuff into it's own assembly using J#
and reference that assembly from your C# code.

Regards,
Joakim

Larry wrote:

I want my C# code to call a Java Class (on Windows).


Nov 16 '05 #3
Larry wrote:
What are some people doing to provide interoperabilit y between C# and
Java (on Windows)?

What kind of samples are there available?

I want my C# code to call a Java Class (on Windows).

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!


Borland's Janeva is a nice offering http://www.borland.com/janeva/ its
very simple to use, and has a free trial, not sure what it costs though.

Cheers Tim.
Nov 16 '05 #4
Note that J# is based on the "old" Java 1.1.4 system so its utility is limited.

"Joakim Karlsson" <jk*******@NOSP AMjkarlsson.com > wrote in message
news:Os******** ******@TK2MSFTN GP12.phx.gbl...
You could perhaps compile the Java-stuff into it's own assembly using J#
and reference that assembly from your C# code.

Nov 16 '05 #5
Hi Tim, did you try Janeva? I took at look at Borland's site and
from what I can tell, it provides a way to make remote calls
via RMI. Can you actually use it to access a regular Java
class or jar?

-- jeff

"Tim Jarvis" <Ti*******@news group.nospam> wrote in message
news:es******** *****@TK2MSFTNG P12.phx.gbl...

Borland's Janeva is a nice offering http://www.borland.com/janeva/ its
very simple to use, and has a free trial, not sure what it costs though.

Cheers Tim.

Nov 16 '05 #6
jeff wrote:
Hi Tim, did you try Janeva? I took at look at Borland's site and
from what I can tell, it provides a way to make remote calls
via RMI. Can you actually use it to access a regular Java
class or jar?

-- jeff


I tried it its very early stages, but nothing real, just playing with
it really. I think you are right about remote accessing only via RMI
(certainly that's what I was doing) and talking to App Server hosted
object instances.

I may well be wrong but I don't think you can use Janeva to just
instantiate locally a regular java class.

Cheers Tim.
Nov 16 '05 #7

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

Similar topics

1
1919
by: j-integra_support | last post by:
Looking for Java/COM interoperability tools? Thousands of companies world-wide are using J-Integra for COM for interoperability between Java and Microsoft COM applications. J-Integra for COM is a pure Java implementation of the DCOM protocol, making it several times faster than Web Services. J-Integra for COM Features: * Access J2EE components from VB, C++, ASPs, etc... * Access COM components from EJBs, Servlets, JSPs, Applets, etc......
1
2542
by: Sai Kit Tong | last post by:
Hi, I am developing a new application running on Windows platform that needs to interface with existing legacy code - written in basic C / C++. I am trying to evaluate Java vs C# implementations. Originally, I have the impression that C# should be a clear winner. I started with Java and using the guideline from the book "Java Native Interface". Though complex, the book provide details of the practical implementation and potential...
3
4038
by: Sai Kit Tong | last post by:
Hi, I am developing a new application running on Windows platform that needs to interface with existing legacy code - written in basic C / C++. I am trying to evaluate Java vs C# implementations. Originally, I have the impression that C# should be a clear winner. I started with Java and using the guideline from the book "Java Native Interface". Though complex, the book provide details of the practical implementation and potential...
3
2404
by: Sai Kit Tong | last post by:
I posted for help on legacy code interface 2 days ago. Probably I didn't make it clear in my original mail. I got a couple of answers but none of them address my issues directly (See attached response). My first reply directed me to source code migration but I didn't have the source code. The second reply mentioned about .NET interoperability (PInvoke I think) but I MENTIONED THAT I COULDN'T FIND ANY DOCUMENTATION FROM MSDN LIBRARY BASED ON...
2
1350
by: Andrea | last post by:
Hi evrybody ! Does anybody know how to call a java class from a COM component ? Any suggestion ? Thanks Andrea
0
1090
by: j-integra_support | last post by:
Looking for Java/.NET/CORBA interoperability tools? Intrinsyc Software has just released the latest addition to its popular J-Integra Interoperability Suite... J-Integra Espresso! J-Integra Espresso is a true CORBA solution for the Microsoft .NET framework. This Object Request Broker (ORB) has been written in C# and connects Java and CORBA with the .NET world. J-Integra Espresso has been developed entirely as managed code and can therefore...
4
3368
by: jos | last post by:
Hi There, What would be suitable options to exchange data between a Dot net program and a java program? Thanks Jyotsna Sharan
7
5001
by: Christian Wilhelm | last post by:
Hi! I'm trying to call a Java WebService out of a .net Client. There are two Methods, one Method requires one Parameter of type Parameter, the other Method requires one Parameter of type Parameter. I can call the first Method without Problems, the Parameter can be deserialized by the WebService. But if I want to call the second Method and give it an Array of Parameters, then the following exception is thrown by the WebService:...
2
7009
by: Jobs | last post by:
Download the JAVA , .NET and SQL Server interview with answers Download the JAVA , .NET and SQL Server interview sheet and rate yourself. This will help you judge yourself are you really worth of attending interviews. If you own a company best way to judge if the candidate is worth of it. http://www.questpond.com/InterviewRatingSheet.zip
0
10171
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11821
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
11408
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10908
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
8462
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6415
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
6558
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
4731
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3761
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.