My project path: c:\dev_latest
Java-version: JDK7 update 21 (I cannot use any other version due to project limitation)
Build Tools: Ant, Gradle
IDE: IntelliJ 17.3,
OS: Windows 10.
tried but not worked for me links:
1) CreateProcess error=206, The filename or extension is too long when running main() method
2) Createprocess error=206; the filename or extension is too long
4) How to set a long Java classpath in Windows?
I am sick of getting this exception :
Caused by: java.io.IOException: Cannot run program "C:\Java\jdk1.7.0_21\jre\bin\java.exe": CreateProcess error=206, The filename or extension is too long
at org.apache.tools.ant.taskdefs.launcher.Java13CommandLauncher.exec(Java13CommandLauncher.java:58)
at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:428)
at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:442)
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.executeAsForked(JUnitTask.java:1257)
A week before my code was running just fine. Now I am stuck.
None of the previous answers on the forum resolved my issue.
My colleagues are on same environment but they are not experiencing the same issue.
Thanks in advance.