It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Build Jira from source. Error: " The filename or extension is too long ".

Łukasz Sokół Feb 26, 2012

I have problem with building Jira from source. After 12 minutes, the build failed with following error: "An Ant BuildException has occured: Javadoc failed: java.io.IOException: Cannot run program "C:\Program Files\Java\jdk1.6.0_31\bin\javadoc.exe": CreateProcess error=206, The filename or extension is too long."

I'm trying to move catalogue with javadoc to shortest path and result was the same.

Any idea ?

5 answers

0 votes
Radu Dumitriu Feb 26, 2012

NTFS has a limit of 255 chars for a file name.

Add 'useexternalfile="yes"' to the javadoc task, it may work.

JamieA Feb 26, 2012

That's not really true... NTFS has a 32k limit. Stuff built with the CRT generally have max path of 260 chars. But, do you need to build the javadoc? Probably not...

Radu Dumitriu Feb 26, 2012

You are talking about path, not file name, I guess ....

Łukasz Sokół Feb 26, 2012

I don't see any build.xml which can used as build script.

I build source in command line.

Jira 5.0, sdk 1.6, Windows 7

Radu Dumitriu Feb 26, 2012

It is a maven build AFAIK. You should see what pom fails, most probably it should have a maven-antrun-plugin with something like:

<configuration>
<tasks>
<javadoc ...................>

Or, install a Linux VM and build on it ....

Łukasz Sokół Feb 27, 2012

ok I give up. I don't have this text in pom files. May I should add this text...

JamieA Feb 27, 2012

@Radu, sorry yes, I didn't read your answer properly.

eden Mar 05, 2016

I would suggest Long path Tool to manage your proble,I use long path tool when occur problem to me.

cristopher Mar 05, 2016

You can use “Long Path Tool” !It will help you.

Roksolana Jun 04, 2016

Long Path Tool help me a lot when i have an issue like file deleting or renaming the file. Also good to use if file name and file extension is too long.

 

Samantha Chloe Aug 13, 2016

“Long Path Tool” is very helpful for this error !
You can use to solve this problem

johnraf Aug 17, 2016
“Long Path Tool” is very helpful.
albina elvira Sep 03, 2016

I used to have similar problems too, but after using
"long path tool" You can use to solve this problem.

johnraf Sep 03, 2016

I used to have similar problems too, but after using
"long path tool" You can use to solve this problem.

stepan raisa Oct 05, 2016


“Long Path Tool” is very helpful for this error !
best solution for your problem.

aiden_carter Oct 08, 2016

Long path tool is the very good program for error, unlock solution.
Try it and solve your problem.
I used long path tool and I solve my error, unlock problem solution.

0 votes
Łukasz Sokół Feb 26, 2012

Do you know where is Build.xml ? In catalogue where is installed Java are several "Build.xml" files and they are very similar.

0 votes
steven kor Jul 16, 2013

Try " Long Path Tool " useful in situations where you see these error messages: Cannot read from source file or disk, there has been a sharing violation, cannot delete file or folder, the file name you specified is not valid or too long, the source or destination file may be in use and many other file managing errors that you encounter in your computing use.

0 votes
robertvo Oct 28, 2015
I would suggest you using Long Path Tool to eliminate this issue in other occassions.
0 votes
bonnie jones Apr 29, 2017

Hey, I too use the Long Path Tool! :D Works every time :)

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Posted in Jira Software

Demo Den Ep. 5: Meet Jira Mobile

See how to use Jira on the go! Demo Den Episode 5 is here: meet Jira Mobile with  Jira  Product Manager Rayen Magpantay.  Demo Den is in our monthly series where a Jira PM demonstrates...

427 views 1 10
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you