c/c++ 호출
기본적으로 JNI를 이용해서 호출합니다.
JNI를 쉽게 사용하기 위한 Wrapper들이 여러 개 존재하고 있습니다.
- HawtJNI(http://hawtjni.fusesource.org/documentation/index.html )
- JNIWrapper(http://www.teamdev.com/jniwrapper/)
- JNIEasy(http://www.innowhere.com/webapp/index.jsp#st=products.jnieasy )
c# 호출
j-interop (Pure Java – Com Bridge) : http://j-interop.org/ , 라이센스 : LGPL 3.0[1]
java <-> c#
- Jni4net : http://jni4net.sourceforge.net/ , bridge between Java and .NET (interprocess, fast, object oriented, open-source), 라이선스: opensource, GPL tools and LGPL runtime
- ikvm.net : http://www.ikvm.net/, jar -> .dll, .dll -> .jar

기본적으로 JNI를 이용해서 호출합니다.
JNI를 쉽게 사용하기 위한 Wrapper들이 여러 개 존재하고 있습니다.
- HawtJNI(http://hawtjni.fusesource.org/documentation/index.html )
- JNIWrapper(http://www.teamdev.com/jniwrapper/)
- JNIEasy(http://www.innowhere.com/webapp/index.jsp#st=products.jnieasy )
c# 호출
j-interop (Pure Java – Com Bridge) : http://j-interop.org/ , 라이센스 : LGPL 3.0[1]
java <-> c#
- Jni4net : http://jni4net.sourceforge.net/ , bridge between Java and .NET (interprocess, fast, object oriented, open-source), 라이선스: opensource, GPL tools and LGPL runtime
using net.sf.jni4net;
public class Program
{
private static void Main()
{
Bridge.CreateJVM(new BridgeSetup());
java.lang.System.@out.println("Greetings from C# to Java world!");
}
}
public class Program
{
private static void Main()
{
Bridge.CreateJVM(new BridgeSetup());
java.lang.System.@out.println("Greetings from C# to Java world!");
}
}
import net.sf.jni4net.Bridge;
import java.io.IOException;
import java.lang.String;
public class Program {
public static void main(String[] args) throws IOException {
Bridge.init();
system.Console.WriteLine("Greetings from Java to .NET world!");
}
}
import java.io.IOException;
import java.lang.String;
public class Program {
public static void main(String[] args) throws IOException {
Bridge.init();
system.Console.WriteLine("Greetings from Java to .NET world!");
}
}
- ikvm.net : http://www.ikvm.net/, jar -> .dll, .dll -> .jar

'Tools' 카테고리의 다른 글
| 무료 CAPTCHA 서비스 (0) | 2010/06/16 |
|---|---|
| json simple library (0) | 2010/05/18 |
| java c/c++, c# 호출방식 (0) | 2010/04/29 |
| eclipse에서 java source 보기 (0) | 2010/03/16 |
| build.xml refactoring using macrodef tag (1) | 2010/03/15 |