A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
this week in the
Other Open Source APIs
How to Call the .NET(c#) Method from Java
Joined: Jul 23, 2011
Sep 04, 2012 06:24:23
I have gone through few web sites and have done few things like,
1. created DLL file
2.generated Header file using Javah -jni command.
still i am getting the following error "Exception in thread "main"
: no C:/ClassLibrary1.dll in java.library.path"
do we need to do anything after this for invoking C# method from
help me out from this.
Thanks in advance.
Joined: Apr 27, 2010
May 07, 2014 23:30:14
I am also looking for the same. Can any one give a sample code for this. both a java program and .net program..
say for example., Add method is written in .net and java passes two parameters to .net and gets the result from there and prints in eclipse.
similarly two values are passed from .net for multiplication java performs the function and sends back the result.
Thanks in Advance. Request you to help asap.
I agree. Here's the link:
subject: How to Call the .NET(c#) Method from Java
JNI and DLL
protecting .class file from decompilation
Calling a DLL from Java
Calling a generic DLL
Calling VB Dll In JAVA
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015