The text of this article is not in this database — only its details are. Read it on the old site: Invoking Java Code in C#.NET
8 Comments
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.
The text of this article is not in this database — only its details are. Read it on the old site: Invoking Java Code in C#.NET
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.
Tarik AlkathiriPosted Dec 1, 2021, 8:18 PM
Thank you very much for the solution. I followed your instruction and every thing is fine except the file jni4net.j-0.8.6.0.jar I could not find it in the downloaded library. could you please show me how to get the jar file.
Ken GeePosted Nov 29, 2017, 10:48 AM
Trying jni4net to gain access to methods and classes in existing JAR. The object gets the correct path, but the only file listed when the command findJAR is the jni4net.jar. What am I doing wrong? what procedure needs to be followed to get other JAR files to load properly?
Guest UserPosted Oct 30, 2014, 6:34 AM
got it Ajay
Sam HobbsPosted Oct 29, 2014, 5:38 PM
Note that unmanaged languages and compliers support mixing languages in a single executable but .Net does not. For example we cannot combine C# and VB.Net in one executable. Therefore the absence of support for mixing C# and Java in a single executable is consistent with the design of .Net. I have written many programs back in the day (before Windows) when the operating systems did not support dynamic linking. I agree it would be good to be able to mix languages in a single executable but Dynamic Link Libraries seem to not be a performance problem and use of separate files for multiple languages seem to be good for most things. So if it is possible to call Java in a separate file from C# then it seems to be a good solution most of the time at least.
Guest UserPosted Oct 29, 2014, 5:40 AM
I mean why we need to leverage Java in c#
Guest UserPosted Oct 29, 2014, 5:40 AM
Hi Ajay... good information, may i know whats the merit for this cross functionality.