The demo shows how to implement a simple TWAIN scanner software, which calls .NET methods in Java via JNI.
- Download Dynamic .NET TWAIN
- Download and learn jni4net v0.8.8 to understand how JVM and CLR work together
- Correctly configure the paths of JAVA_HOME and C:\Windows\Microsoft.NET\Framework\v3.5\csc.exe in the system environment
- Unzip the sample code, and launch JavaTwain.sln to build JavaTwain.dll
- Copy bin and lib folders from jni4net package to your project directory
- Run generateProxies.cmd
- Run run.cmd