README.txt revision 0
0N/AThis sample provides C# "Hello World" program that is invoked
0N/Afrom Java application in the same process.
0N/A
0N/AThere is no way to invoke .NET methods from Java classes directly,
0N/Ait is necessary to use native code level.
0N/AThe sample contains C++ library that can invoke any .NET program by mscorlib library.
0N/AUsing the JNI the Java application invokes the C# "Hello World".
0N/A
0N/AThe sample contains the following files:
0N/A
0N/AMakefile - make file
0N/AREADME.txt - this readme
0N/Ainvoked.cs - the invoked HelloWorld Java program
0N/Ainvoker.java - C# invoker application
0N/Ainvoker.cpp - C++ wrapper
0N/AinvokerExp.h - wrapper library exports
0N/Ainvoker.h - javah generated file with the native method definition
0N/A
0N/AAfter the success making the following files are produced:
0N/A
0N/Ainvoked.exe - the executable HelloWorld .NET program
0N/Ainvoker.class - the compiled Java class that invokes the .NET program
0N/Ainvoker.dll - the wrapper library
0N/A
0N/AThe following environment needs to be set for the correct sample
0N/Abuild and execution:
0N/A
0N/AINCLUDE must contain the paths to:
0N/A 1. MS Visual C++ standard include
0N/A 2. .NET SDK include
0N/A 3. Java includes
0N/A Example: %MSDEV%/VC98/Include;%DOTNET%/Include;%JAVA_HOME%/include;%JAVA_HOME%/include/win32
0N/A
0N/ALIB must contain the paths to:
0N/A 1. MS Visual C++ standard libraries
0N/A 2. .NET SDK libraries
0N/A Example: %MSDEV%/VC98/Lib;%DOTNET%/Lib
0N/A
0N/APATH must contain the paths to:
0N/A 1. MS Visual C++ standard bin
0N/A 2. MS Dev common bin
0N/A 3. .NET SDK libraries
0N/A 4. Java bin
0N/A Example: %MSDEV%/VC98/Bin;%MSDEV%/Common/MSDev98/Bin;%DOTNET%/Lib;%JAVA_HOME%/bin;%PATH%
0N/A
0N/ATo run the sample please do:
0N/A
0N/Ajava invoker invoked.exe
0N/A
0N/A
0N/A--Dmitry Ryashchentsev