Hi all
  
     I have downloaded and installed jakarta-ant-1.4-bin.zip and jakarta-ant-1.4-src.zip. I have also added following variables
 
     ant_home, java_home, bin directory of ant home to path and ant.jar, jaxp.jar of ant_home/lib to classpath and tools.jar of jdk   also to classpath.
 
    I have also added junit.jar and installation directory of Junit to classpath
 
    After setting these variables as per Ant's manusl (Building Ant) section iam giving this command

  build -Ddist.dir=<directory_to_contain_Ant_distribution> dist    

   iam getting following error,

  ... Bootstrapping Ant Distribution
JAVA_HOME=C:\jdk1.2.2
JAVA=C:\jdk1.2.2\bin\java
JAVAC=C:\jdk1.2.2\bin\javac
CLASSPATH=C:\jdk1.2.2\lib\tools.jar;lib\crimson.jar;lib\jaxp.jar;;classes;src\main;.;c:\jdk1.2.2\lib\tools.jar;c:\jdk1.2.2\lib\dt.jar;E:\ptc\Windchill_5.1\codebase;C:\Oracle\orb\classes\yoj.jar;C:\Ora
cle\orb\classes\share.zip;C:\ptc_uk\ant\jakarta-ant-1.4\lib\ant.jar;C:\ptc_uk\ant\jakarta-ant-1.4\lib\jaxp.jar;c:\ptc_uk\Junit\junit3.7\junit.jar;c:\ptc_uk\Junit\junit3.7

... Compiling Ant Classes
Note: 4 files use or override a deprecated API.  Recompile with "-deprecation" for details.
1 warning

... Copying Required Files
src\main\org\apache\tools\ant\taskdefs\defaults.properties
        1 file(s) copied.
src\main\org\apache\tools\ant\types\defaults.properties
        1 file(s) copied.

... Building Ant Distribution
259 File(s) copied
Buildfile: build.xml
A nonfatal internal JIT (3.10.107(x)) error 'Relocation error: NULL relocation target' has occurred in :
  'org/apache/crimson/parser/Parser2.maybeComment (Z)Z': Interpreting method.
  Please report this error in detail to http://java.sun.com/cgi-bin/bugreport.cgi


bootstrap:

prepare:

check_for_optional_packages:

build:
Compiling 94 source files to C:\ptc_uk\ant\jakarta-ant-1.4\build\classes
C:\ptc_uk\ant\jakarta-ant-1.4\src\main\org\apache\tools\ant\taskdefs\optional\junit\JUnitTestRunner.java:206: Method addListener(org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner) not found
 in class junit.framework.TestResult.
        res.addListener(this);
                       ^
C:\ptc_uk\ant\jakarta-ant-1.4\src\main\org\apache\tools\ant\taskdefs\optional\junit\JUnitTestRunner.java:208: Method addListener(junit.framework.TestListener) not found in class junit.framework.TestRe
sult.
            res.addListener((TestListener)formatters.elementAt(i));
                           ^
C:\ptc_uk\ant\jakarta-ant-1.4\src\main\org\apache\tools\ant\taskdefs\optional\junit\JUnitTestRunner.java:240: Method runCount() not found in class junit.framework.TestResult.
                junitTest.setCounts(res.runCount(), res.failureCount(),
                                                ^
C:\ptc_uk\ant\jakarta-ant-1.4\src\main\org\apache\tools\ant\taskdefs\optional\junit\JUnitTestRunner.java:240: Method failureCount() not found in class junit.framework.TestResult.
                junitTest.setCounts(res.runCount(), res.failureCount(),
                                                                    ^
C:\ptc_uk\ant\jakarta-ant-1.4\src\main\org\apache\tools\ant\taskdefs\optional\junit\JUnitTestRunner.java:241: Method errorCount() not found in class junit.framework.TestResult.
                                    res.errorCount());
                                                  ^
C:\ptc_uk\ant\jakarta-ant-1.4\src\main\org\apache\tools\ant\taskdefs\optional\junit\JUnitTestRunner.java:247: Method errorCount() not found in class junit.framework.TestResult.
        if (retCode != SUCCESS || res.errorCount() != 0) {
                                                ^
C:\ptc_uk\ant\jakarta-ant-1.4\src\main\org\apache\tools\ant\taskdefs\optional\junit\JUnitTestRunner.java:249: Method failureCount() not found in class junit.framework.TestResult.
        } else if (res.failureCount() != 0) {
                                   ^
Note: 6 files use or override a deprecated API.  Recompile with "-deprecation" for details.
7 errors, 1 warning

BUILD FAILED

C:\ptc_uk\ant\jakarta-ant-1.4\build.xml:207: Compile failed, messages should have been provided.

Total time: 48 seconds

... Cleaning Up Build Directories

... Done Bootstrapping Ant Distribution
Bootstrap FAILED

So please help me, where iam going wrong.

Thanks

DK

Reply via email to