ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 48896] New: bootstrap.bat removes tools.jar from ant classpath - cannot build on windows
Date Fri, 12 Mar 2010 08:38:07 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=48896

           Summary: bootstrap.bat removes tools.jar from ant classpath -
                    cannot build on windows
           Product: Ant
           Version: unspecified
          Platform: PC
        OS/Version: Windows Vista
            Status: NEW
          Severity: blocker
          Priority: P2
         Component: Build Process
        AssignedTo: notifications@ant.apache.org
        ReportedBy: jkf@apache.org


When trying to build ant from windows the following error occurs:

D:\data\eclipseworkspace\ant-trunk>build test

... Bootstrapping Ant Distribution
JAVA_HOME=d:\java\jdk1.6.0_18
JAVA=d:\java\jdk1.6.0_18\bin\java
JAVAC=d:\java\jdk1.6.0_18\bin\javac
CLASSPATH=build\classes;src\main;d:\jdk1.6.0_18\lib\tools.jar

... Compiling Ant Classes
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

... 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
Buildfile: D:\data\eclipseworkspace\ant-trunk\build.xml

bootstrap:

prepare:

check_for_optional_packages:

build:
Created dir: D:\data\eclipseworkspace\ant-trunk\build\lib
Compiling 279 source files to D:\data\eclipseworkspace\ant-trunk\build\classes

BUILD FAILED
D:\data\eclipseworkspace\ant-trunk\build.xml:987: The following error occurred
w
hile executing this line:
D:\data\eclipseworkspace\ant-trunk\build.xml:524: Unable to find a javac
compile
r;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK.
It is currently set to "d:\java\jdk1.6.0_18\jre"

Total time: 2 seconds

... Cleaning Up Build Directories

... Done Bootstrapping Ant Distribution
Bootstrap FAILED

this is caused by the fact that tools.jar is added to the LOCALCLASSPATH
but the LOCALCLASSPATH is no longer provided to the CLASSPATH in bootstrap.bat


-- fix underway --

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Mime
View raw message