Friday, May 15, 2015

ANT build error : java.io.IOException: CreateProcess error=206, .....The filename or extension is too long


i got this error when i ran ant with verbose switch (ant -v dist)

Their are different solution provided on internet for this error.

In my case they didn't work.

In my case problem was my ant home is too long.
eg.

C:\Users\Administrator\salesforce\src_main_013700_8467\apache-ant-1.9.0

when i places ant to smaller path it fixed the problem

C:\apache-ant-1.9.0



2 comments:

Unknown said...

You can use Long Path Tool to solve the problem of long filename or extension. It is very helpful to remove process error-206.

Artur Łysik said...

Great, it's a good advice, it helped to solve my problem. Thank you :)