Hey,

given the error you posted, problem is in apache cxf plugin.
This can be fixed in plugin itself, it should be using ProcessBuilder api instead of just executing command line.

I would suggest you report bug / post on their mailing list.

As workaround I would suggest you move JDK somewhere nearer root of drive,
something like c:\tools\jdk_1.8.0\ would probably make it work.

--
tomaz


On Wed, Jul 8, 2015 at 1:56 AM, Gandikota, Murthy <mgandikota@westechmed.com> wrote:

>What command are you running when you get this?

>any stack trace?

 

An engineer in my org has encountered while running a java process with a very long classpath on Windows 7. As Eduardo has indicated, there are a few options: eg. Pathing jar. Apparently there is no easy fix. If you could kindly provide one, I’d be grateful.

 

Here is the specific error we are seeing:

 

[ERROR] Failed to execute goal org.apache.cxf:cxf-java2ws-plugin:3.0.4:java2ws (process-classes-ivr) on project xyz: Error while executing process. Cannot run program "C:\Program Files\Java\jdk1.8.0_40\jre\bin\java.exe" (i
n directory "C:\dev\mycom\code\xyz\target"): CreateProcess error=206, The filename or extension is too long -> [Help 1]

 

Regards