Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
Developer
Posts: 25
Registered: ‎12-09-2012
My Device: Z10
My Carrier: Congstar Germany

Build failed "due [...] to create the parent directory"

[ Edited ]

Hey,

I am currently trying to build a webworks/phonegap app. Building with "ant qnx build" works fine. But the "ant playbook build" fails "due to failed to create the parent directory for C:\Progra
m Files\Research In Motion\BlackBerry WebWorks SDK for TabletOS 2.1.0.6\bbwp\ext
\Cordova_Network\library.xml " .

 

Any suggestions?

Thanks a lot for any input! Smiley Happy

 

Here is the cmd output:

 

C:\mytestappBB\Playbook\mytestapp>ant playbook build
Buildfile: C:\mytestappBB\Playbook\mytestapp\build.xml
 
playbook:
 
build:
 
generate-cod-name:
     [echo] Generated name: mytestapp.bar
 
clean:
   [delete] Deleting directory C:\mytestappBB\Playbook\mytestapp\build
 
package-app:
    [mkdir] Created dir: C:\mytestappBB\Playbook\mytestapp\build\widget
     [copy] Copying 57 files to C:\mytestappBB\Playbook\mytestapp\build\widget
     [copy] Copying 1 file to C:\mytestappBB\Playbook\mytestapp\build\widget
     [copy] Copying 2 files to C:\Program Files\Research In Motion\BlackBerry We
bWorks SDK for TabletOS 2.1.0.6\bbwp\ext
 
BUILD FAILED
C:\mytestappBB\Playbook\mytestapp\build.xml:67: The following error occurred whi
le executing this line:
C:\mytestappBB\Playbook\mytestapp\playbook.xml:122: Failed to copy C:\mytestappB
B\Playbook\mytestapp\www\ext-air\Cordova_Network\library.xml to C:\Program Files
\Research In Motion\BlackBerry WebWorks SDK for TabletOS 2.1.0.6\bbwp\ext\Cordov
a_Network\library.xml due to failed to create the parent directory for C:\Progra
m Files\Research In Motion\BlackBerry WebWorks SDK for TabletOS 2.1.0.6\bbwp\ext
\Cordova_Network\library.xml
 
Total time: 2 seconds

BlackBerry Development Advisor
Posts: 762
Registered: ‎10-01-2009
My Device: All
My Carrier: N/A

Re: Build failed "due [...] to create the parent directory"

Could be a permissions issue.  Have you tried running the Command Prompt "as Admin"?

Developer
Posts: 25
Registered: ‎12-09-2012
My Device: Z10
My Carrier: Congstar Germany

Re: Build failed "due [...] to create the parent directory"

Hey, just tried it as admin!

Now I get this error:

 

C:\mytestappBB\Playbook\mytestapp>ant playbook build
Buildfile: C:\mytestappBB\Playbook\mytestapp\build.xml

playbook:

build:

generate-cod-name:
     [echo] Generated name: mytestapp.bar

clean:
   [delete] Deleting directory C:\mytestappBB\Playbook\mytestapp\build

package-app:
    [mkdir] Created dir: C:\mytestappBB\Playbook\mytestapp\build\widget
     [copy] Copying 57 files to C:\mytestappBB\Playbook\mytestapp\build\widget
     [copy] Copying 1 file to C:\mytestappBB\Playbook\mytestapp\build\widget
     [copy] Copying 2 files to C:\Program Files\Research In Motion\BlackBerry We
bWorks SDK for TabletOS 2.1.0.6\bbwp\ext
      [zip] Building zip: C:\mytestappBB\Playbook\mytestapp\build\mytestapp.zip

build:

BUILD FAILED
C:\mytestappBB\Playbook\mytestapp\build.xml:67: The following error occurred whi
le executing this line:
C:\mytestappBB\Playbook\mytestapp\playbook.xml:134: The following error occurred
 while executing this line:
C:\mytestappBB\Playbook\mytestapp\playbook.xml:170: Execute failed: java.io.IOEx
ception: Cannot run program "C:\Program Files\Research In Motion\BlackBerry WebW
orks SDK for TabletOS 2.1.0.6\bbwp\bbwp.exe": CreateProcess error=2, The system
cannot find the file specified
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
        at java.lang.Runtime.exec(Runtime.java:615)
        at org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Exec
ute.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.ExecTask.runExecute(ExecTask.java:631)
        at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:672)
        at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:498)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
        at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav
a:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
        at net.sf.antcontrib.logic.IfTask.execute(IfTask.java:217)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav
a:106)
        at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:154)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
        at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav
a:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
        at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav
a:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.jav
a:398)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
        at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav
a:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:392)
        at org.apache.tools.ant.Target.performTasks(Target.java:413)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
        at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(Single
CheckExecutor.java:38)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
        at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442)
        at org.apache.tools.ant.taskdefs.SubAnt.execute(SubAnt.java:303)
        at org.apache.tools.ant.taskdefs.SubAnt.execute(SubAnt.java:221)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav
a:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:392)
        at org.apache.tools.ant.Target.performTasks(Target.java:413)
        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(DefaultExe
cutor.java:41)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
        at org.apache.tools.ant.Main.runBuild(Main.java:811)
        at org.apache.tools.ant.Main.startAnt(Main.java:217)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find th
e file specified
        at java.lang.ProcessImpl.create(Native Method)
        at java.lang.ProcessImpl.<init>(ProcessImpl.java:189)
        at java.lang.ProcessImpl.start(ProcessImpl.java:133)
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:1021)
        ... 66 more

Total time: 2 seconds

Highlighted
BlackBerry Development Advisor
Posts: 762
Registered: ‎10-01-2009
My Device: All
My Carrier: N/A

Re: Build failed "due [...] to create the parent directory"

I've only come across build errors like this when I had the wrong version of Java JDK installed.  Make sure it's the 32bit version, NOT the 64bit version?

Developer
Posts: 25
Registered: ‎12-09-2012
My Device: Z10
My Carrier: Congstar Germany

Re: Build failed "due [...] to create the parent directory"

What I did:

 

- installed/updated to tha latest Java JDK 32bit!

- installed/updated to latest WebWorks for Tablet

 

But still nothing new here!

qnx build works fine but nothing with playbook build ...

Developer
Posts: 25
Registered: ‎12-09-2012
My Device: Z10
My Carrier: Congstar Germany

Re: Build failed "due [...] to create the parent directory"

[ Edited ]

BUT (sorry I just figuered out) with different error:

 

now the build starts and then this happens:

 

...

[exec] [info]  Packaging the bar file

[exec] Error: Invalid byte 1 of 1-byte UTF-8 sequence.

BUILD SUCCESSFUL

 

But I do not get any bar file to sign/deploy ...

 

Any ideas?

 

Update:

Found this:

http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/Package-quot-Build-succeeded-quo...

 

But I checked for BOM with File BOM Detector and nothing found ...