我正在尝试在 Java 应用程序中使用 Leadtools 的“表单识别和处理 SDK ”。创建RasterCodecs
、OcrEngine
( OcrEngineManager.createEngine )BarcodeEngine
和DiskMasterFormsRepository
. 我需要创建的最后一件事是 的实例AutoFormsEngine
,但我得到下面的异常。
leadtools.RasterException: javax/xml/bind/DatatypeConverter
at leadtools.internal.JavaPlatform.fromBase64String(JavaPlatform.java:7)
at leadtools.internal.LeadPlatform.fromBase64String(LeadPlatform.java:33)
at leadtools.forms.recognition.internal.FRForm.readXml(u:389)
at leadtools.forms.recognition.FormRecognitionAttributes.dataToFRForm(b:297)
at leadtools.forms.recognition.FormRecognitionEngine.getAttributesManagers(sb:2805)
at leadtools.forms.auto.AutoFormsEngine$GetFormsManagersCallBack.onMasterFormCallback(wb:1681)
at leadtools.forms.auto.AutoFormsEngine.k(wb:1441)
at leadtools.forms.auto.AutoFormsEngine.k(wb:1749)
at leadtools.forms.auto.AutoFormsEngine.k(wb:3022)
at leadtools.forms.auto.AutoFormsEngine.k(wb:384)
at leadtools.forms.auto.AutoFormsEngine.<init>(wb:292)
at com.ptfs.FormDataExtract.SetupAutoFormsEngine(FormDataExtract.java:241)
at com.ptfs.FormDataExtract.StartUpEngines(FormDataExtract.java:206)
at com.ptfs.Main.main(Main.java:48)
Caused by: java.lang.NoClassDefFoundError: javax/xml/bind/DatatypeConverter
... 14 more
Caused by: java.lang.ClassNotFoundException: javax.xml.bind.DatatypeConverter
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:602)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
任何帮助将不胜感激
我确定下面的 DLL 已加载(因为我已手动加载它们)
ltkrnx.dll
ltdisx.dll
Altfilx.dll
LTIMGUTLx.dll
LTIMGCORx.dll
LTIMGEFXx.dll
LTIMGCLRx.dll
LTDRWx.dll
LTSVGx.dll
LTANNx.dll
LTDOCWRTTTFx.dll
LTDOCWRTEMFx.dll
LTDOCWRTx.dll
LTDRWx.dll
ltocrx.dll
Filters\Lffaxx.dll
Filters\Lfcmpx.dll
Filters\Lftifx.dll