twain4java
twain4java copied to clipboard
Pure JAVA Twain library
Example running error, requesting help, thank you! Connected to the target VM, address: '127.0.0.1:56702', transport: 'socket' Metal Nimbus CDE/Motif Windows TWAIN GET: 0f10ffff000000000000000000000000,0f10040070df8e694901000000000000,TWAIN GET: 1811ffff000000000000000000000000,18110400b020ce694901000000000000,java.lang.NullPointerException at free.lucifer.jtwain.TwainCapability.dumpHex(TwainCapability.java:142) at free.lucifer.jtwain.TwainCapability.get(TwainCapability.java:87) at...
When we calling the scanning action to the second time the application get crashed
in win10 it's work . in win 11 , this line TwainIdentity id = (TwainIdentity) ids.next() error; why we can cast java.util.concurrent.Semaphore to free.lucifer.jtwain.TwainIdentity how to fiexd this question, can...
com.xiaoliu.exceptions.TwainException: Unable to create private window at com.xiaoliu.core.twain.Twain$1.run(Twain.java:858) at java.lang.Thread.run(Thread.java:745) Cannot open datasource manager. jdk 1.8 32bit os windows11 24h2 please help help me !!!
Hello, JDK32 Bit it can work normal, but both branches of this project have issues with JDK 64 bit NullPointerException, Log: TWAIN GET: 0f10ffff000000000000000000000000,0f100400908e52f75c02000000000000,null TWAIN GET: 1811ffff000000000000000000000000,18110600708a52f75c02000000000000,java.lang.NullPointerException at free.lucifer.jtwain.Twain.getContainer(Twain.java:1017) at...
How to set up single-sided and double-sided scanning
Hi. I found bug at Twain#getArch(). On Windows11, System.getProperty("os.name") returns "Windows11" and getArch() returns "32", 32bit JRE on Windows10 64bit returns "64". Why dont you use Native.POINTER_SIZE to check architecture....
When I call this program, the following methods work without any issues: Twain.setSourceManager(); TwainScanner.getScanner(); TwainSourceManager.selectSource(); TwainSourceManager.openSource(). I can also obtain the state 4 through twainSource.getState(). However, when I call twainSource.enable();...