Having problem building jcifs V1.2.19

maven 专栏收录该内容
25 篇文章 0 订阅
C:\Temp\jcifs_1.2.19>ant all
Buildfile: build.xml

dependencies:

hasServlet:

BUILD FAILED
C:\Temp\jcifs_1.2.19\build.xml:45: The following error occurred while executing
this line:
C:\Temp\jcifs_1.2.19\build.xml:34: The Java Servlet API classes could not be fou
nd.  These files can be obtained from:

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

Total time: 0 seconds

C:\Temp\jcifs_1.2.19>

1. copy C:\jboss-portal-2.6.4\server\default\libservlet-api.jar to %ANT_HOME%\lib\

2. run ant -diagnostics

C:\Temp\jcifs_1.2.19>ant  -diagnostics
------- Ant diagnostics report -------
Apache Ant version 1.7.0 compiled on December 13 2006

-------------------------------------------
 Implementation Version
-------------------------------------------
core tasks     : 1.7.0
optional tasks : not available

-------------------------------------------
 ANT PROPERTIES
-------------------------------------------
ant.version: Apache Ant version 1.7.0 compiled on December 13 2006
ant.java.version: 1.6
ant.core.lib: C:\Program Files\WinAnt\lib\ant.jar
ant.home: C:\Program Files\WinAnt

-------------------------------------------
 ANT_HOME/lib jar listing
-------------------------------------------
ant.home: C:\Program Files\WinAnt
ant-antlr.jar (5769 bytes)
ant-apache-bcel.jar (8627 bytes)
ant-apache-bsf.jar (3980 bytes)
ant-apache-log4j.jar (3074 bytes)
ant-apache-oro.jar (39591 bytes)
ant-apache-regexp.jar (3737 bytes)
ant-apache-resolver.jar (4080 bytes)
ant-commons-logging.jar (3943 bytes)
ant-commons-net.jar (47163 bytes)
ant-contrib-1.0b3.jar (224277 bytes)
ant-jai.jar (21368 bytes)
ant-javamail.jar (7011 bytes)
ant-jdepend.jar (8152 bytes)
ant-jmf.jar (6609 bytes)
ant-jsch.jar (30122 bytes)
ant-junit.jar (92792 bytes)
ant-launcher.jar (11734 bytes)
ant-netrexx.jar (9895 bytes)
ant-nodeps.jar (430311 bytes)
ant-starteam.jar (35404 bytes)
ant-stylebook.jar (2334 bytes)
ant-swing.jar (6713 bytes)
ant-testutil.jar (14919 bytes)
ant-trax.jar (6897 bytes)
ant-weblogic.jar (14254 bytes)
ant.jar (1289806 bytes)
servlet-api.jar (89678 bytes)
xercesImpl.jar (1212965 bytes)
xml-apis.jar (195119 bytes)

-------------------------------------------
 USER_HOME/.ant/lib jar listing
-------------------------------------------
user.home: C:\Documents and Settings\Administrator
No such directory.

-------------------------------------------
 Tasks availability
-------------------------------------------
image : Missing dependency javax.media.jai.PlanarImage
sshexec : Missing dependency com.jcraft.jsch.UserInfo
scp : Missing dependency com.jcraft.jsch.UserInfo
jdepend : Missing dependency jdepend.xmlui.JDepend
A task being missing/unavailable should only matter if you are trying to use it

-------------------------------------------
 org.apache.env.Which diagnostics
-------------------------------------------
Not available.
Download it at http://xml.apache.org/commons/

-------------------------------------------
 XML Parser information
-------------------------------------------
XML Parser : org.apache.xerces.jaxp.SAXParserImpl
XML Parser Location: C:\Program Files\WinAnt\lib\xercesImpl.jar
Namespace-aware parser : org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser
Namespace-aware parser Location: C:\Program Files\WinAnt\lib\xercesImpl.jar

-------------------------------------------
 System properties
-------------------------------------------
java.runtime.name : Java(TM) SE Runtime Environment
sun.boot.library.path : C:\Sun\SDK\jdk\jre\bin
java.vm.version : 10.0-b19
ant.library.dir : C:\Program Files\WinAnt\lib
java.vm.vendor : Sun Microsystems Inc.
java.vendor.url : http://java.sun.com/
path.separator : ;
java.vm.name : Java HotSpot(TM) Client VM
file.encoding.pkg : sun.io
user.country : US
sun.java.launcher : SUN_STANDARD
sun.os.patch.level : Service Pack 2
java.vm.specification.name : Java Virtual Machine Specification
user.dir : C:\Temp\jcifs_1.2.19
java.runtime.version : 1.6.0_05-b13
java.awt.graphicsenv : sun.awt.Win32GraphicsEnvironment
java.endorsed.dirs : C:\Sun\SDK\jdk\jre\lib\endorsed
os.arch : x86
java.io.tmpdir : C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\
line.separator :

java.vm.specification.vendor : Sun Microsystems Inc.
user.variant :
os.name : Windows 2003
ant.home : C:\Program Files\WinAnt
sun.jnu.encoding : Cp1252
java.library.path : C:\Sun\SDK\jdk\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\MsNfs\;C:\php-5.2.5-Win32;C:\Sun\SDK\
jdk;C:\Sun\SDK\;C:\Program Files\WinAnt;C:\Program Files\WinAnt\bin;C:\Sun\SDK\bin;C:\Sun\SDK\lib;C:\Sun\SDK\jdk\bin;C:\Sun\SDK\jdk\lib;C:\jboss-portal-2.6.4\server\default\lib;
java.specification.name : Java Platform API Specification
java.class.version : 50.0
sun.management.compiler : HotSpot Client Compiler
os.version : 5.2
user.home : C:\Documents and Settings\Administrator
user.timezone : Asia/Singapore
java.awt.printerjob : sun.awt.windows.WPrinterJob
file.encoding : Cp1252
java.specification.version : 1.6
user.name : Administrator
java.class.path : C:\Program Files\WinAnt\lib\ant-launcher.jar;C:\Program Files\WinAnt\lib\ant-antlr.jar;C:\Program Files\WinAnt\lib\ant-apache-bcel.jar;C:\Program Files\WinAnt\lib\ant-apache-bsf.jar;
C:\Program Files\WinAnt\lib\ant-apache-log4j.jar;C:\Program Files\WinAnt\lib\ant-apache-oro.jar;C:\Program Files\WinAnt\lib\ant-apache-regexp.jar;C:\Program Files\WinAnt\lib\ant-apache-resolver.jar;C:
\Program Files\WinAnt\lib\ant-commons-logging.jar;C:\Program Files\WinAnt\lib\ant-commons-net.jar;C:\Program Files\WinAnt\lib\ant-contrib-1.0b3.jar;C:\Program Files\WinAnt\lib\ant-jai.jar;C:\Program F
iles\WinAnt\lib\ant-javamail.jar;C:\Program Files\WinAnt\lib\ant-jdepend.jar;C:\Program Files\WinAnt\lib\ant-jmf.jar;C:\Program Files\WinAnt\lib\ant-jsch.jar;C:\Program Files\WinAnt\lib\ant-junit.jar;
C:\Program Files\WinAnt\lib\ant-launcher.jar;C:\Program Files\WinAnt\lib\ant-netrexx.jar;C:\Program Files\WinAnt\lib\ant-nodeps.jar;C:\Program Files\WinAnt\lib\ant-starteam.jar;C:\Program Files\WinAnt
\lib\ant-stylebook.jar;C:\Program Files\WinAnt\lib\ant-swing.jar;C:\Program Files\WinAnt\lib\ant-testutil.jar;C:\Program Files\WinAnt\lib\ant-trax.jar;C:\Program Files\WinAnt\lib\ant-weblogic.jar;C:\P
rogram Files\WinAnt\lib\ant.jar;C:\Program Files\WinAnt\lib\servlet-api.jar;C:\Program Files\WinAnt\lib\xercesImpl.jar;C:\Program Files\WinAnt\lib\xml-apis.jar;C:\Sun\SDK\jdk\lib\tools.jar
java.vm.specification.version : 1.0
sun.arch.data.model : 32
java.home : C:\Sun\SDK\jdk\jre
java.specification.vendor : Sun Microsystems Inc.
user.language : en
awt.toolkit : sun.awt.windows.WToolkit
java.vm.info : mixed mode
java.version : 1.6.0_05
java.ext.dirs : C:\Sun\SDK\jdk\jre\lib\ext;C:\WINDOWS\Sun\Java\lib\ext
sun.boot.class.path : C:\Sun\SDK\jdk\jre\lib\resources.jar;C:\Sun\SDK\jdk\jre\lib\rt.jar;C:\Sun\SDK\jdk\jre\lib\sunrsasign.jar;C:\Sun\SDK\jdk\jre\lib\jsse.jar;C:\Sun\SDK\jdk\jre\lib\jce.jar;C:\Sun\SDK
\jdk\jre\lib\charsets.jar;C:\Sun\SDK\jdk\jre\classes
java.vendor : Sun Microsystems Inc.
file.separator : \
java.vendor.url.bug : http://java.sun.com/cgi-bin/bugreport.cgi
sun.cpu.endian : little
sun.io.unicode.encoding : UnicodeLittle
sun.desktop : windows
sun.cpu.isalist : pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86

-------------------------------------------
 Temp dir
-------------------------------------------
Temp dir is C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\
Temp dir is writeable
Temp dir alignment with system clock is 0 ms

-------------------------------------------
 Locale information
-------------------------------------------
Timezone Singapore Time offset=28800000

-------------------------------------------
 Proxy information
-------------------------------------------
Java1.5+ proxy settings:
Direct connection


C:\Temp\jcifs_1.2.19>
3. run ant -d
C:\Temp\jcifs_1.2.19>ant -d
Apache Ant version 1.7.0 compiled on December 13 2006
Buildfile: build.xml
Adding reference: ant.PropertyHelper
Detected Java version: 1.6 in: C:\Sun\SDK\jdk\jre
Detected OS: Windows 2003
Adding reference: ant.ComponentHelper
Setting ro project property: ant.file -> C:\Temp\jcifs_1.2.19\build.xml
Adding reference: ant.projectHelper
Adding reference: ant.parsing.context
Adding reference: ant.targets
parsing buildfile C:\Temp\jcifs_1.2.19\build.xml with URI = file:/C:/Temp/jcifs_1.2.19/build.xml
Setting ro project property: ant.project.name -> jcifs
Adding reference: jcifs
Setting ro project property: ant.file.jcifs -> C:\Temp\jcifs_1.2.19\build.xml
Project base dir set to: C:\Temp\jcifs_1.2.19
 +Target:
 +Target: usage
 +Target: hasServlet
 +Target: dependencies
 +Target: compile
 +Target: jar
 +Target: javadoc
 +Target: all
 +Target: clean
 +Target: allclean
 +Target: jcifs
 +Target: distrib
 +Target: checksum
 +Target: docs
[antlib:org.apache.tools.ant] Could not load definitions from resource org/apache/tools/ant/antlib.xml. It could not be found.
Setting project property: version -> 1.2.19
Setting project property: reldate -> Apr 6, 2008
Attempting to create object of type org.apache.tools.ant.helper.DefaultExecutor
Adding reference: ant.executor
Build sequence for target(s) `usage' is [usage]
Complete build sequence is [usage, dependencies, compile, jar, docs, javadoc, all, clean, jcifs, distrib, hasServlet, checksum, allclean, ]

usage:
     [echo]
     [echo] Available Build Targets:
     [echo]
     [echo] dependencies: Checks that all class dependencies are met.
     [echo]      compile: Builds the jCIFS classes.
     [echo]          jar: Packages the jCIFS classes into a .jar file.
     [echo]         docs: XSLT generated website pages
     [echo]      javadoc: Creates the Javadoc API documentation.
     [echo]          all: Performs all of the above.
     [echo]
     [echo]        clean: Removes build artifacts.
     [echo]     allclean: Removes distribution and build artifacts.  This
     [echo]               includes the .jar file, .class files, and
     [echo]               the Javadoc API documentation.
     [echo]
     [echo]        jcifs: Builds the "all" target, followed by "clean".  This
     [echo]               reproduces the distribution package contents.
     [echo]      distrib: Builds the "jcifs" target, and additionally
     [echo]               recreates the .zip and .tgz downloadable
     [echo]               distributions.
     [echo]     checksum: Creates MD5 checksums of the .zip and .tgz
     [echo]               distributions.
     [echo]
     [echo]        usage: Displays this message.

BUILD SUCCESSFUL
Total time: 0 seconds
C:\Temp\jcifs_1.2.19>
4. run ant -d dependencies
C:\Temp\jcifs_1.2.19>ant -d dependencies
Apache Ant version 1.7.0 compiled on December 13 2006
Buildfile: build.xml
Adding reference: ant.PropertyHelper
Detected Java version: 1.6 in: C:\Sun\SDK\jdk\jre
Detected OS: Windows 2003
Adding reference: ant.ComponentHelper
Setting ro project property: ant.file -> C:\Temp\jcifs_1.2.19\build.xml
Adding reference: ant.projectHelper
Adding reference: ant.parsing.context
Adding reference: ant.targets
parsing buildfile C:\Temp\jcifs_1.2.19\build.xml with URI = file:/C:/Temp/jcifs_1.2.19/build.xml
Setting ro project property: ant.project.name -> jcifs
Adding reference: jcifs
Setting ro project property: ant.file.jcifs -> C:\Temp\jcifs_1.2.19\build.xml
Project base dir set to: C:\Temp\jcifs_1.2.19
 +Target:
 +Target: usage
 +Target: hasServlet
 +Target: dependencies
 +Target: compile
 +Target: jar
 +Target: javadoc
 +Target: all
 +Target: clean
 +Target: allclean
 +Target: jcifs
 +Target: distrib
 +Target: checksum
 +Target: docs
[antlib:org.apache.tools.ant] Could not load definitions from resource org/apache/tools/ant/antlib.xml. It could not be found.
Setting project property: version -> 1.2.19
Setting project property: reldate -> Apr 6, 2008
Attempting to create object of type org.apache.tools.ant.helper.DefaultExecutor
Adding reference: ant.executor
Build sequence for target(s) `dependencies' is [dependencies]
Complete build sequence is [dependencies, compile, jar, docs, javadoc, all, clean, jcifs, distrib, hasServlet, checksum, usage, allclean, ]

dependencies:
Setting project property: hasServlet -> true
Setting ro project property: ant.file -> C:\Temp\jcifs_1.2.19\build.xml
Setting ro project property: ant.file.jcifs -> C:\Temp\jcifs_1.2.19\build.xml
Setting ro project property: ant.project.name -> jcifs
Setting project property: java.ext.dirs -> C:\Sun\SDK\jdk\jre\lib\ext;C:\WINDOWS\Sun\Java\lib\ext
Setting project property: sun.desktop -> windows
Setting project property: java.runtime.version -> 1.6.0_05-b13
Setting project property: file.separator -> \
Setting project property: user.country -> US
Setting project property: java.vm.version -> 10.0-b19
Setting project property: line.separator ->
Setting project property: sun.io.unicode.encoding -> UnicodeLittle
Setting project property: user.dir -> C:\Temp\jcifs_1.2.19
Setting project property: file.encoding.pkg -> sun.io
Setting project property: java.specification.name -> Java Platform API Specification
Setting project property: user.variant ->
Setting project property: java.vm.specification.name -> Java Virtual Machine Specification
Setting project property: java.specification.vendor -> Sun Microsystems Inc.
Setting project property: ant.core.lib -> C:\Program Files\WinAnt\lib\ant.jar
Setting project property: path.separator -> ;
Setting project property: sun.arch.data.model -> 32
Setting project property: version -> 1.2.19
Setting project property: os.name -> Windows 2003
Setting project property: java.endorsed.dirs -> C:\Sun\SDK\jdk\jre\lib\endorsed
Setting project property: ant.library.dir -> C:\Program Files\WinAnt\lib
Setting project property: sun.jnu.encoding -> Cp1252
Setting project property: sun.boot.library.path -> C:\Sun\SDK\jdk\jre\bin
Setting project property: ant.version -> Apache Ant version 1.7.0 compiled on December 13 2006
Setting project property: awt.toolkit -> sun.awt.windows.WToolkit
Setting project property: user.name -> Administrator
Setting project property: os.version -> 5.2
Setting project property: hasServlet -> true
Setting project property: sun.java.launcher -> SUN_STANDARD
Setting project property: sun.management.compiler -> HotSpot Client Compiler
Setting project property: reldate -> Apr 6, 2008
Setting project property: java.awt.graphicsenv -> sun.awt.Win32GraphicsEnvironment
Setting project property: java.library.path -> C:\Sun\SDK\jdk\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\MsNfs\;C:\
php-5.2.5-Win32;C:\Sun\SDK\jdk;C:\Sun\SDK\;C:\Program Files\WinAnt;C:\Program Files\WinAnt\bin;C:\Sun\SDK\bin;C:\Sun\SDK\lib;C:\Sun\SDK\jdk\bin;C:\Sun\SDK\jdk\lib;C:\jboss-portal-2.6.4\server\default\
lib;
Setting project property: java.vm.specification.version -> 1.0
Setting project property: user.timezone ->
Setting project property: java.vm.info -> mixed mode
Setting project property: sun.os.patch.level -> Service Pack 2
Setting project property: sun.boot.class.path -> C:\Sun\SDK\jdk\jre\lib\resources.jar;C:\Sun\SDK\jdk\jre\lib\rt.jar;C:\Sun\SDK\jdk\jre\lib\sunrsasign.jar;C:\Sun\SDK\jdk\jre\lib\jsse.jar;C:\Sun\SDK\jdk
\jre\lib\jce.jar;C:\Sun\SDK\jdk\jre\lib\charsets.jar;C:\Sun\SDK\jdk\jre\classes
Setting project property: sun.cpu.isalist -> pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86
Setting project property: java.runtime.name -> Java(TM) SE Runtime Environment
Setting project property: java.home -> C:\Sun\SDK\jdk\jre
Setting project property: java.class.path -> C:\Program Files\WinAnt\lib\ant-launcher.jar;C:\Program Files\WinAnt\lib\ant-antlr.jar;C:\Program Files\WinAnt\lib\ant-apache-bcel.jar;C:\Program Files\Win
Ant\lib\ant-apache-bsf.jar;C:\Program Files\WinAnt\lib\ant-apache-log4j.jar;C:\Program Files\WinAnt\lib\ant-apache-oro.jar;C:\Program Files\WinAnt\lib\ant-apache-regexp.jar;C:\Program Files\WinAnt\lib
\ant-apache-resolver.jar;C:\Program Files\WinAnt\lib\ant-commons-logging.jar;C:\Program Files\WinAnt\lib\ant-commons-net.jar;C:\Program Files\WinAnt\lib\ant-contrib-1.0b3.jar;C:\Program Files\WinAnt\l
ib\ant-jai.jar;C:\Program Files\WinAnt\lib\ant-javamail.jar;C:\Program Files\WinAnt\lib\ant-jdepend.jar;C:\Program Files\WinAnt\lib\ant-jmf.jar;C:\Program Files\WinAnt\lib\ant-jsch.jar;C:\Program File
s\WinAnt\lib\ant-junit.jar;C:\Program Files\WinAnt\lib\ant-launcher.jar;C:\Program Files\WinAnt\lib\ant-netrexx.jar;C:\Program Files\WinAnt\lib\ant-nodeps.jar;C:\Program Files\WinAnt\lib\ant-starteam.
jar;C:\Program Files\WinAnt\lib\ant-stylebook.jar;C:\Program Files\WinAnt\lib\ant-swing.jar;C:\Program Files\WinAnt\lib\ant-testutil.jar;C:\Program Files\WinAnt\lib\ant-trax.jar;C:\Program Files\WinAn
t\lib\ant-weblogic.jar;C:\Program Files\WinAnt\lib\ant.jar;C:\Program Files\WinAnt\lib\servlet-api.jar;C:\Program Files\WinAnt\lib\xercesImpl.jar;C:\Program Files\WinAnt\lib\xml-apis.jar;C:\Sun\SDK\jd
k\lib\tools.jar
Setting project property: user.home -> C:\Documents and Settings\Administrator
Setting project property: java.specification.version -> 1.6
Setting project property: os.arch -> x86
Setting project property: java.awt.printerjob -> sun.awt.windows.WPrinterJob
Setting project property: java.vm.specification.vendor -> Sun Microsystems Inc.
Setting project property: java.vendor.url.bug -> http://java.sun.com/cgi-bin/bugreport.cgi
Setting project property: user.language -> en
Setting project property: java.class.version -> 50.0
Setting project property: java.vm.name -> Java HotSpot(TM) Client VM
Setting project property: java.vendor.url -> http://java.sun.com/
Setting project property: java.vendor -> Sun Microsystems Inc.
Setting project property: java.vm.vendor -> Sun Microsystems Inc.
Setting project property: java.io.tmpdir -> C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\
Setting project property: java.version -> 1.6.0_05
Setting project property: ant.home -> C:\Program Files\WinAnt
Setting project property: file.encoding -> Cp1252
Setting project property: sun.cpu.endian -> little
Project base dir set to: C:\Temp\jcifs_1.2.19
  [antcall] calling target(s) [hasServlet] in build file C:\Temp\jcifs_1.2.19\build.xml
Setting ro project property: ant.file -> C:\Temp\jcifs_1.2.19\build.xml
Adding reference: ant.projectHelper
Adding reference: ant.parsing.context
Adding reference: ant.targets
parsing buildfile C:\Temp\jcifs_1.2.19\build.xml with URI = file:/C:/Temp/jcifs_1.2.19/build.xml
Setting ro project property: ant.project.name -> jcifs
Adding reference: jcifs
Setting ro project property: ant.file.jcifs -> C:\Temp\jcifs_1.2.19\build.xml
Project base dir set to: C:\Temp\jcifs_1.2.19
 +Target:
 +Target: usage
 +Target: hasServlet
 +Target: dependencies
 +Target: compile
 +Target: jar
 +Target: javadoc
 +Target: all
 +Target: clean
 +Target: allclean
 +Target: jcifs
 +Target: distrib
 +Target: checksum
 +Target: docs
Override ignored for property "version"
Override ignored for property "reldate"
Build sequence for target(s) `hasServlet' is [hasServlet]
Complete build sequence is [hasServlet, dependencies, compile, jar, docs, javadoc, all, clean, jcifs, distrib, checksum, usage, allclean, ]
  [antcall] Entering C:\Temp\jcifs_1.2.19\build.xml...
Build sequence for target(s) `hasServlet' is [hasServlet]
Complete build sequence is [hasServlet, dependencies, compile, jar, docs, javadoc, all, clean, jcifs, distrib, checksum, usage, allclean, ]

hasServlet:
Skipped because property 'hasServlet' set.
  [antcall] Exiting C:\Temp\jcifs_1.2.19\build.xml.

BUILD SUCCESSFUL
Total time: 1 second
C:\Temp\jcifs_1.2.19>
5. lastly run ant -d all , which complete the build :D

  • 0
    点赞
  • 0
    评论
  • 0
    收藏
  • 扫一扫,分享海报

©️2021 CSDN 皮肤主题: 大白 设计师:CSDN官方博客 返回首页
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、C币套餐、付费专栏及课程。

余额充值