This has been resolved. One of the folders in my classpath had a space
in the directory name.  Once I removed that everything started
working.

On Mar 9, 5:12 pm, deewiles <[email protected]> wrote:
> I am using Netbeans 6.5 on 8.04.  $JAVA_HOME = /usr/lib/jvm/java-1.5.0-
> sun.
>
> When I run the "HelloWorld" Android application I get the following
> error:
>
> init:
> deps-jar:
> Compiling 1 source file to /home/cwiles/NetBeansProjects/
> AndroidApplication1/build/classes
> compile:
> Created dir: /home/cwiles/NetBeansProjects/AndroidApplication1/dist
> Updating jar: /home/cwiles/NetBeansProjects/AndroidApplication1/dist/
> AndroidApplication1.apk_
> Updating zip: /home/cwiles/NetBeansProjects/AndroidApplication1/dist/
> AndroidApplication1.apk_
> Using keystore: /home/cwiles/.android/debug.keystore
> Deleting: /home/cwiles/NetBeansProjects/AndroidApplication1/dist/
> AndroidApplication1.apk_
> jar:
> Result: 255
> java.io.IOException: Cannot run program "/home/cwiles/Java":
> java.io.IOException: error=2, No such file or directory
>         at java.lang.ProcessBuilder.start(ProcessBuilder.java:459)
>         at java.lang.Runtime.exec(Runtime.java:593)
>         at java.lang.Runtime.exec(Runtime.java:431)
>         at java.lang.Runtime.exec(Runtime.java:328)
>         at org.netbeans.modules.android.ant.Util.adb(Util.java:44)
>         at
> org.netbeans.modules.android.ant.AdbPackageManagerWait.execute
> (AdbPackageManagerWait.java:59)
>         at org.apache.tools.ant.UnknownElement.execute
> (UnknownElement.java:288)
>         at sun.reflect.GeneratedMethodAccessor63.invoke(Unknown
> Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke
> (DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at org.apache.tools.ant.dispatch.DispatchUtils.execute
> (DispatchUtils.java:106)
>         at org.apache.tools.ant.Task.perform(Task.java:348)
>         at org.apache.tools.ant.Target.execute(Target.java:357)
>         at org.apache.tools.ant.Target.performTasks(Target.java:385)
>         at org.apache.tools.ant.Project.executeSortedTargets
> (Project.java:1337)
>         at org.apache.tools.ant.Project.executeTarget(Project.java:
> 1306)
>         at org.apache.tools.ant.helper.DefaultExecutor.executeTargets
> (DefaultExecutor.java:41)
>         at org.apache.tools.ant.Project.executeTargets(Project.java:
> 1189)
>         at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run
> (BridgeImpl.java:273)
>         at org.apache.tools.ant.module.run.TargetExecutor.run
> (TargetExecutor.java:499)
>         at org.netbeans.core.execution.RunClassThread.run
> (RunClassThread.java:151)
> Caused by: java.io.IOException: java.io.IOException: error=2, No such
> file or directory
>         at java.lang.UNIXProcess.<init>(UNIXProcess.java:148)
>         at java.lang.ProcessImpl.start(ProcessImpl.java:65)
>         at java.lang.ProcessBuilder.start(ProcessBuilder.java:452)
>         ... 20 more
> BUILD FAILED (total time: 3 seconds)
>
> The emulator fires up successfully, but obviously my application does
> not.  I use the same setup/configuration on my mac and everything
> works fine.
>
> Thoughts?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to