无法构建JCIFS jar文件

时间:2014-10-07 07:27:19

标签: java jar executable-jar smb libsmbclient

我已经安装了apache ant,我想将SMB库与我创建的java / class一起放入一个jar文件中。

我尝试进入" ant jar"进入cmd。但是,我似乎无法构建它,因为我不断收到此错误。

BUILD FAILED
D:\SMB_JAR_FILES\SMB Java Files\jcifs-master\build.xml:45: The following error o
ccurred while executing this line:
D:\SMB_JAR_FILES\SMB Java Files\jcifs-master\build.xml:34: The Java Servlet API
classes could not be found.  These files can be
    obtained from:

        http://java.sun.com/products/servlet/download.html

Total time: 0 seconds

有人可以教我如何解决这个问题吗?我可以知道我是否遗漏了任何东西。谢谢。


我下载了Servlet.api后

我遇到了另一个错误

dependencies:

hasServlet:

compile:
    [javac] D:\SMB_JAR_FILES\SMB Java Files\jcifs-master\build.xml:57: warning:
'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to f
alse for repeatable builds
    [javac] Compiling 178 source files to D:\SMB_JAR_FILES\SMB Java Files\jcifs-
master\build

BUILD FAILED
D:\SMB_JAR_FILES\SMB Java Files\jcifs-master\build.xml:57: Error running \usr\lo
cal\java5\bin\javac compiler

Total time: 0 seconds

0 个答案:

没有答案