You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Mads B. Tandrup" <ma...@yahoo.com> on 2007/02/01 19:22:04 UTC
Ant 1.7: Problem in windows when path to ant contains spaces
Hello
I'm not sure if this is the correct place, but here goes:
I've updated from Ant 1.6 to 1.7 using the binary distribution at ant.apache.org.
But when I try to run the new version it returns an exception before reading my build file:
java.lang.ClassNotFoundException: org.apache.tools.ant.Main
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:183)
at java.lang.ClassLoader.loadClass(ClassLoader.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:255)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
My ant files are located in a subfolder of: C:\Documents and Settings.
If I move the entire folder to a path that does not contain spaces.
It works perfectly.
With ant 1.6 it works in both locations.
Is this the intended way it should (not) work?
I'm using the JDK 1.3.1_19 compiler.
Best regards,
Mads
___________________________________________________________
The all-new Yahoo! Mail goes wherever you go - free your email address from your Internet provider. http://uk.docs.yahoo.com/nowyoucan.html
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org