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

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

This widget could not be displayed.

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

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

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...

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

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

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 ....

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

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

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

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

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.

 

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

“Long Path Tool” is very helpful.

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

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


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

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.

This widget could not be displayed.

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

This widget could not be displayed.

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.

This widget could not be displayed.
I would suggest you using Long Path Tool to eliminate this issue in other occassions.
This widget could not be displayed.

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

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

97 views 1 0
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you