我的Ant脚本有问题.
我需要将文件复制到Linux服务器
<copy file="../Ant/lib/jsch-0.1.50.jar" tofile="${ant.home}/lib/jsch-0.1.50.jar" />
<scp todir="${server.user}:${server.password}@${server.dev}:${server.dev.dir.config}" trust="true" verbose="true">
<fileset dir="${src.home}/Config/">
<include name="**/*" />
</fileset>
</scp>
Run Code Online (Sandbox Code Playgroud)
文件已正确复制,但我收到此错误:
BUILD FAILED
C:\dev.xml:179: Problem: failed to create task or type scp
Cause: Could not load a dependent class com/jcraft/jsch/Logger
It is not enough to have Ant's optional JARs
you need the JAR files that the optional tasks depend upon.
Ant's optional task dependencies are listed in the manual.
Action: Determine what extra JAR files are needed, and place them in one of: …Run Code Online (Sandbox Code Playgroud) 我在Tomcat 9中的Web应用程序中遇到此问题:
打开数据文件时出错./tessdata/eng.traineddata请确保将TESSDATAPREFIX环境变量设置为"tessdata"目录的父目录.加载语言'eng'失败Tesseract无法加载任何语言!
我从Tess4J 3.0.4 zip创建文件夹C:\ Tess4J,子文件夹:
在catalina.properties中,我添加:
在环境中我尝试添加两者,但不起作用:
然后我调用我的servlet whit doOCR方法,我有错误.
你可以帮帮我吗?