•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the C# section within the Software Development category of DaniWeb, a massive community of 370,601 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,042 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C# advertiser:
Views: 1645 | Replies: 3
![]() |
•
•
Join Date: Dec 2003
Location: Nashville, TN
Posts: 2,330
Reputation:
Rep Power: 11
Solved Threads: 101
What exactly are you trying to do?
Be advised that C# and Java do the same things, mostly. Is there something specific that you need Java or C# for that would cause you not to use one explicitly?
If you were talking web applications, you could definitely do things with XML/SOAP to talk between a Java application and a C# application. That's about the only thing that you can do, though-- there's not really an API that I'm aware of that you can use to make the two interact.
Be advised that C# and Java do the same things, mostly. Is there something specific that you need Java or C# for that would cause you not to use one explicitly?
If you were talking web applications, you could definitely do things with XML/SOAP to talk between a Java application and a C# application. That's about the only thing that you can do, though-- there's not really an API that I'm aware of that you can use to make the two interact.
Alex Cavnar, aka alc6379
Greetings:
It can be done via JNI, i once did that in 2 steps, from java to c++ and then from c++ to c#, in java`s webpage there`s a tutorial on doing this, from java to c++ and viceversa.
For writing c# code in Java code, im pretty sure that`s not possible since they`re different languages but as alc6379 said almost everything you can do in C# can be done in Java.
It can be done via JNI, i once did that in 2 steps, from java to c++ and then from c++ to c#, in java`s webpage there`s a tutorial on doing this, from java to c++ and viceversa.
For writing c# code in Java code, im pretty sure that`s not possible since they`re different languages but as alc6379 said almost everything you can do in C# can be done in Java.
Last edited by ROGENATOR : Jun 29th, 2006 at 11:00 pm.
Hi,
You have some options. Your first and best bet is to use JNI to expose Java functionality native codes and consume them through Platform Invoke. A more exotic approach would be to use one of the free Java VM implementations in C# so that you can interpret Java code within C#. But my suggestion would be to convert from Java to C#, there are wizards facilitating the whole process a lot and this way you won't suffer performance and type incompatibility problems.
Loren Soth
You have some options. Your first and best bet is to use JNI to expose Java functionality native codes and consume them through Platform Invoke. A more exotic approach would be to use one of the free Java VM implementations in C# so that you can interpret Java code within C#. But my suggestion would be to convert from Java to C#, there are wizards facilitating the whole process a lot and this way you won't suffer performance and type incompatibility problems.
Loren Soth
Crimson K. Software _________________________________________________________________ Crimson K. Blog
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb C# Marketplace
- Linking JAVA and C# (Java)
- I need help!! (Java)
- linking java with fortran under Windows OS (C++)
Other Threads in the C# Forum
- Previous Thread: Help on Communication over LAn..
- Next Thread: reverse the LL using recurtion in C#



Linear Mode