gpt4 book ai didi

java - 使用 Java 创建 Leadtools 的 AutoFormsEngine 实例

转载 作者:行者123 更新时间:2023-12-01 17:38:38 28 4
gpt4 key购买 nike

我正在尝试在 Java 应用程序中使用 Leadtools 的“Forms Recognition and Processing SDK”。我可以毫无问题地创建 RasterCodecsOcrEngine (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

最佳答案

我自己找到了解决方案。显然 Leadtolls 不适用于 Java SDK 14,而这正是我所使用的。我降级到 Java SDK 8 并且它有效。

关于java - 使用 Java 创建 Leadtools 的 AutoFormsEngine 实例,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61002202/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com