Bug 376393 - CreateProcess error=206, The filename or extension is too long
Summary: CreateProcess error=206, The filename or extension is too long
Status: CLOSED DUPLICATE of bug 327193
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 3.7.2   Edit
Hardware: PC Windows 7
: P3 normal with 2 votes (vote)
Target Milestone: ---   Edit
Assignee: JDT-Debug-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-10 08:53 EDT by Ignacio Cando CLA
Modified: 2016-08-28 08:19 EDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ignacio Cando CLA 2012-04-10 08:53:58 EDT
Build Identifier: Version: Indigo Service Release 2 Build id: 20120216-1857

This event is succeed when run as.. java aplication with a class java that consume jpa entity for save data in oracle.


java.io.IOException: Cannot run program "H:\Herramientas\Java\jre6\bin\javaw.exe" (in directory "H:\Proyectos\SAPLA"): CreateProcess error=206, The filename or extension is too long
	at java.lang.ProcessBuilder.start(Unknown Source)
	at java.lang.Runtime.exec(Unknown Source)
	at org.eclipse.debug.core.DebugPlugin.exec(DebugPlugin.java:848)
	at org.eclipse.jdt.launching.AbstractVMRunner.exec(AbstractVMRunner.java:73)
	at org.eclipse.jdt.internal.launching.StandardVMRunner.run(StandardVMRunner.java:317)
	at org.eclipse.jdt.launching.JavaLaunchDelegate.launch(JavaLaunchDelegate.java:101)
	at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:854)
	at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:703)
	at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:937)
	at org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlugin.java:1141)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
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>(Unknown Source)
	at java.lang.ProcessImpl.start(Unknown Source)
	... 11 more

Reproducible: Always

Steps to Reproduce:
1. Install windows 7 64 bits, jdk 1.6u31 x64, eclipse Indigo 3.72 x86,64 bits, oracle 64 bits, jboss 6.0.1 final 
Take care dont install in PRogram Files, else in directory or paths without spaces.
2. Create project web dynamic project with jpa hibernate, jsf
3. Create resource of jpa entity every oracle database
4. Create class that permited save data in oracle using persistence entitymanager, entitymanagerfactory, Persistence.
5. Try run..as Java aplication
Comment 1 Michael Rennie CLA 2012-04-10 13:13:01 EDT
Dupe of bug 327193

*** This bug has been marked as a duplicate of bug 327193 ***
Comment 2 Stijn de Witt CLA 2012-06-04 10:38:37 EDT
Why duplicate? Seems to be a different bug actually:

#376393:
CreateProcess error=206, The filename or extension is too long

#327193:
CreateProcess error=87, The parameter is incorrect
Comment 3 Ruben Faelens CLA 2012-08-24 12:51:57 EDT
It is actually a duplicate, since the solution to the other bug will also resolve this one.
Comment 4 Barness Web CLA 2016-08-28 08:19:15 EDT
Use Long Path Tool, Long Path Tool can simplify and probably end your problems in unlocking, managing and renaming files that appear to have a long filename.