Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse RT (runtime) » File too long error (CreateProcess error=206, The filename or extension is too long)
File too long error [message #903247] Wed, 22 August 2012 16:55 Go to next message
raghavan kanagiri is currently offline raghavan kanagiriFriend
Messages: 1
Registered: August 2012
Junior Member
Dear,

I am getting the below exception when trying to run ant build script i am getting file name too long exception . I tried to reduce the file name even getting the same exception.

I tried to search but found the this was an existing issue in eclipse.. if the file name is too long then we get this exception and the issue would be solved by changing eclipse plugin .. even that plugin change did not work for me.

the exception i am getting is as below.

Buildfile: C:\TriadWorkspace\P4Dev\eclipse\workspace\phase4\triadWs\ant\build-coxb-LciTrunkMisceqReply.xsd.xml
init:
generateJAXB:
[echo] Generating JAXB classes for C:\TriadWorkspace\P4Dev\eclipse\workspace\phase4\triadWs\WebContent\xsd\magiccbxsd\LciTrunkMisceqReply.xsd
[jaxbgen] JAXB generation started.
[xjcTask] Consider using <depends>/<produces> so that XJC won't do unnecessary compilation
[xjcTask] Compiling file:/C:/Users/chalh1/AppData/Local/Temp/jaxb-schema8004715255483005954.xsd
[xjcTask] removing old output files
[xjcTask] Writing output to C:\TriadWorkspace\P4Dev\eclipse\workspace\phase4\triadWs\src
[jaxbgen] JAXB generation ended.
compileJAXB:
[javac] C:\TriadWorkspace\P4Dev\eclipse\workspace\phase4\triadWs\ant\build-coxb-LciTrunkMisceqReply.xsd.xml:67: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
[javac] Compiling 11 source files to C:\TriadWorkspace\P4Dev\eclipse\workspace\phase4\triadWs\build\classes
22-Aug-2012 9:17:06 AM com.legstar.codegen.tasks.CommonsLoggingListener taskFinished

WARNING:
ARNING:


9:17:06 AM com.legstar.codegen.tasks.CommonsLoggingListener taskFinished
iadWs\ant\build-coxb-LciTrunkMisceqReply.xsd.xml:67: Error running C:\TriadWorkspace\jdk1.6.0_31\bin\javac.exe compiler
at org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile(DefaultCompilerAdapter.java:525)
at org.apache.tools.ant.taskdefs.compilers.JavacExternal.execute(JavacExternal.java:61)
at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:1134)
at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:912)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:390)
at org.apache.tools.ant.Target.performTasks(Target.java:411)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.eclipse.ant.internal.launching.remote.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
at org.eclipse.ant.internal.launching.remote.InternalAntRunner.run(InternalAntRunner.java:424)
at org.eclipse.ant.internal.launching.remote.InternalAntRunner.main(InternalAntRunner.java:138)
Caused by: java.io.IOException: Cannot run program "C:\TriadWorkspace\jdk1.6.0_31\bin\javac.exe": CreateProcess error=206, The filename or extension is too long
at java.lang.ProcessBuilder.start(ProcessBuilder.java:460)
at java.lang.Runtime.exec(Runtime.java:593)
at org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Execute.java:862)
at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:481)
at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:495)
at org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile(DefaultCompilerAdapter.java:522)
... 19 more
Caused by: java.io.IOException: CreateProcess error=206, The filename or extension is too long
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(ProcessImpl.java:81)
at java.lang.ProcessImpl.start(ProcessImpl.java:30)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:453)
... 24 more
22-Aug-2012 9:17:06 AM com.legstar.codegen.tasks.CommonsLoggingListener targetFinished
ARNING: 22-Aug-2012 9:17:06 AM com.legstar.codegen.tasks.CommonsLoggingListener targetFinished
nished
dWs\ant\build-coxb-LciTrunkMisceqReply.xsd.xml:67: Error running C:\TriadWorkspace\jdk1.6.0_31\bin\javac.exe compiler
at org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile(DefaultCompilerAdapter.java:525)
at org.apache.tools.ant.taskdefs.compilers.JavacExternal.execute(JavacExternal.java:61)
at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:1134)
at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:912)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:390)
at org.apache.tools.ant.Target.performTasks(Target.java:411)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.eclipse.ant.internal.launching.remote.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
at org.eclipse.ant.internal.launching.remote.InternalAntRunner.run(InternalAntRunner.java:424)
at org.eclipse.ant.internal.launching.remote.InternalAntRunner.main(InternalAntRunner.java:138)
Caused by: java.io.IOException: Cannot run program "C:\TriadWorkspace\jdk1.6.0_31\bin\javac.exe": CreateProcess error=206, The filename or extension is too long
at java.lang.ProcessBuilder.start(ProcessBuilder.java:460)
at java.lang.Runtime.exec(Runtime.java:593)
at org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Execute.java:862)
at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:481)
at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:495)
at org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile(DefaultCompilerAdapter.java:522)
... 19 more
Caused by: java.io.IOException: CreateProcess error=206, The filename or extension is too long
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(ProcessImpl.java:81)
at java.lang.ProcessImpl.start(ProcessImpl.java:30)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:453)
... 24 more

BUILD FAILED
C:\TriadWorkspace\P4Dev\eclipse\workspace\phase4\triadWs\ant\build-coxb-LciTrunkMisceqReply.xsd.xml:67: Error running C:\TriadWorkspace\jdk1.6.0_31\bin\javac.exe compiler


Re: File too long error [message #1258428 is a reply to message #903247] Thu, 27 February 2014 11:23 Go to previous message
jofhen j is currently offline jofhen jFriend
Messages: 1
Registered: February 2014
Junior Member
I used PathTooDeep. And was very pleased with its performance. Long Path Tool is awesome to get rid on your long path files. Good luck!
Previous Topic:Standalone Infocenter
Next Topic:ASCII Art in Editor
Goto Forum:
  


Current Time: Mon Dec 22 08:46:35 GMT 2014

Powered by FUDForum. Page generated in 0.02027 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software