Bug 24722 - ant has trouble finding files when there are spaces in the path name
Summary: ant has trouble finding files when there are spaces in the path name
Alias: None
Product: Ant
Classification: Unclassified
Component: Build Process (show other bugs)
Version: unspecified
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---
Assignee: Ant Notifications List
Depends on:
Reported: 2003-11-14 23:45 UTC by Julian Day
Modified: 2008-02-22 12:18 UTC (History)
0 users


Note You need to log in before you can comment on or make changes to this bug.
Description Julian Day 2003-11-14 23:45:43 UTC
Originally, I had both NetBeans and Java installed under C:\Program 
Files\j2sdk_nb.  However, after trying to install Sun's web service pack 
v.1.3, I found that ant wouldn't work right.  It said that it couldn't find 
tools.jar in some directory, and then listed a number of them.  One of them 
was "Files\j2sdk_nb\...", which led me to suspect that the space in "Program 
Files" was causing it to break.  I redownloaded netbeans, installed it and 
java into a directory structure without spaces, re-installed the web services 
pack, and everything worked fine.  I'm sorry I can't be more specific as to 
the error.
Comment 1 Steve Loughran 2003-11-15 02:00:12 UTC
If this is the version of Ant that sun shipped, it is out of our hands. They
modified the ant.bat and so have to live by their actions.

Current official Apache Ant releases should not have this defect, so please try
one of the versions we offer. 
Comment 2 peter reilly 2003-11-24 18:04:55 UTC
As Steve says this is a netbeans issue.