DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=39295>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=39295 ------- Additional Comments From [EMAIL PROTECTED] 2006-04-24 12:44 ------- (In reply to comment #7) > Can you try the current SVN ant. > I implemently something similar to your request. > It uses Locator.encodeURI implemented in > ant 1.7, instead of File.toURI > > I have tested on linux. > export CLASSPATH="/home/preilly/a space" > [EMAIL PROTECTED]:~/tmp/a > ant -f x.xml > > Where there is a jar in "a space" that is > needed by x.xml. > Indeed it was implemented this way, but please try to put JAVA environment in Windows' default location (C:\Program Files\Java\..) and you'll get this error for sure. I have just investigated it once again - in fact I gave the workaround not the real solution... it works but I can give you a better one. The real problem was encoding of "tools.jar" - it hasn't been encoded at all, so if you've installed JDK somewhere in "spacing" location you get into trouble as I did. New refined fix: Launcher.java - line#258 "jars[jars.length - 1] = toolsJar.toURL();" should be changed to: **************** FIX *********************** if (toolsJar != null) { try { jars[jars.length - 1] = new URL(Locator.encodeURI(toolsJar.toURL().toString())); } catch (UnsupportedEncodingException ex) { throw new MalformedURLException(ex.toString()); } } **************** FIX *********************** -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]