My Oracle Support Banner

Creating EAR Using Ojdeploy Fails with Error "CreateProcess Error=206" (Doc ID 2709171.1)

Last updated on DECEMBER 09, 2021

Applies to:

Oracle JDeveloper - Version 12.2.1.3.0 and later
Information in this document applies to any platform.

Symptoms

On Jdeveloper version 12.2.1.3.0, while creating the EAR file using ojdeploy

Example:

<APPLICATION_NAME>.ear -servletFilterClass oracle.jbo.server.svc.ServiceContextFilter -asyncMDBInterceptorClass oracle.jbo.server.svc.ServiceContextInterceptor
[INFO] java.lang.RuntimeException: java.io.IOException: Cannot run program "<PATH>\jre\bin\java.exe": CreateProcess error=206, The filename or extension is too long
[INFO]  at oracle.jbo.dt.jdevx.deployment.SdoDeployListener.deployed(SdoDeployListener.java:547)
[INFO]  at oracle.jdevimpl.deploy.hook.DeployerListenersHandler$HookDeployerListener.deployed(DeployerListenersHandler.java:418)
[INFO]  at oracle.jdevimpl.deploy.fwk.ListenerSupport.fireDeployed(ListenerSupport.java:215)
[INFO]  at oracle.jdeveloper.deploy.common.AbstractDeployer.deploy(AbstractDeployer.java:162)
...............
[INFO] Caused by: java.io.IOException: CreateProcess error=206, The filename or extension is too long
[INFO]  at java.lang.ProcessImpl.create(Native Method)
[INFO]  at java.lang.ProcessImpl.<init>(ProcessImpl.java:444)
[INFO]  at java.lang.ProcessImpl.start(ProcessImpl.java:140)
[INFO]  at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
[INFO]  ... 39 more
[INFO] [06:29:25 PM] Deployment cancelled.
[INFO] [06:29:25 PM] ----  Deployment incomplete  ----.
[INFO] [06:29:25 PM] Unable to package module
[INFO] [06:29:25 PM] Cannot run program "<PATH>\jre\bin\java.exe": CreateProcess error=206, The filename or extension is too long
[INFO] [06:29:25 PM] CreateProcess error=206, The filename or extension is too long 

Changes

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.