Issue Details (XML | Word | Printable)

Key: NBANDROID-46
Type: Bug Bug
Status: Resolved Resolved
Resolution: Won't Fix
Priority: Major Major
Assignee: radim
Reporter: ceyt
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
nbandroid

error occured when compile

Created: 23/Jul/09 02:27 AM   Updated: 24/Jul/09 04:47 PM   Resolved: 24/Jul/09 04:47 PM
Component/s: None
Affects Version/s: 0.8
Fix Version/s: 0.8

Time Tracking:
Not Specified

File Attachments: 1. Text File messages.log (38 kB) 24/Jul/09 01:33 AM - ceyt

Environment:

netbeans 6.7
linux ubuntu 8.04
android sdk 1.5


Tags:


 Description  « Hide

just installed NBAndroid plugin into my netbean IDE, by using this guide http://kenai.com/projects/nbandroid/pages/Install, with NBAndroid version 0.8.
and continue with http://wiki.netbeans.org/IntroAndroidDevNetBeans for quick start. i choose android 1.5 for my platform with this link /home/android/android-sdk-linux_x86-1.5_r2/platforms/android-1.5. and created a new project.
after compile i found this error

compile:
Created dir: /home/android/workbin/AndroidApplication21/dist

trouble processing:
invalid constant pool index 0000
...while parsing attributes[1]
...while parsing Code attribute at offset 00000120
...while parsing attributes[0]
...while parsing methods[0]
...while parsing org/me/androidapplication21/R$attr.class
...while processing org/me/androidapplication21/R$attr.class

trouble processing:
invalid constant pool index 0000
...while parsing attributes[1]
...while parsing Code attribute at offset 00000181
...while parsing attributes[0]
...while parsing methods[0]
...while parsing org/me/androidapplication21/R.class
...while processing org/me/androidapplication21/R.class

trouble processing:
invalid constant pool index 0000
...while parsing attributes[1]
...while parsing Code attribute at offset 00000156
...while parsing attributes[0]
...while parsing methods[0]
...while parsing org/me/androidapplication21/R$layout.class
...while processing org/me/androidapplication21/R$layout.class

trouble processing:
invalid constant pool index 0000
...while parsing attributes[1]
...while parsing Code attribute at offset 0000014f
...while parsing attributes[0]
...while parsing methods[0]
...while parsing org/me/androidapplication21/MainActivity.class
...while processing org/me/androidapplication21/MainActivity.class

trouble processing:
invalid constant pool index 0000
...while parsing attributes[1]
...while parsing Code attribute at offset 0000015a
...while parsing attributes[0]
...while parsing methods[0]
...while parsing org/me/androidapplication21/R$string.class
...while processing org/me/androidapplication21/R$string.class
5 warnings
no classfiles specified
/home/android/workbin/AndroidApplication21/nbproject/build-impl.xml:424: exec returned: 1
BUILD FAILED (total time: 17 seconds)



radim added a comment - 23/Jul/09 03:31 PM

It is not obvious to me why 'dx' step fails to read your classes. I added some hints how to make this report more complete. Take a look at http://kenai.com/projects/nbandroid/pages/Troubleshooting and add IDE log and output from a compilation using verbose mode. Hopefully it will help us to find what is wrong with these classes.


ceyt added a comment - 24/Jul/09 01:33 AM

log file from ~/.netbeans/6.7/var/log/messages.log


radim added a comment - 24/Jul/09 01:33 AM

http://groups.google.com/group/android-developers/browse_thread/thread/ac57ffcc35c0ae3d/f0c69ca27a104774?lnk=gst&q=invalid+constant+pool+index+0000#f0c69ca27a104774 and similar posts suggest that this is not a problem of NBAndroid. More likely your toolchain has some incompatibilities - the verbose output can help us to find what is actually used.

Add also output from 'java -version' and 'dx -version' using the version of these tools that is executed during the build.


ceyt added a comment - 24/Jul/09 01:35 AM

in verbose mode:

Detected Java version: 1.5 in: /usr/java/jdk1.5.0_19/jre
Detected OS: Linux
Trying to override old definition of task java
parsing buildfile jar:file:/home/cety/netbeans-6.7/enterprise5/ant/nblib/org-netbeans-modules-web-client-javascript-debugger-ant.jar!/org/netbeans/modules/web/client/javascript/debugger/ant/antlib.xml with URI = jar:file:/home/cety/netbeans-6.7/enterprise5/ant/nblib/org-netbeans-modules-web-client-javascript-debugger-ant.jar!/org/netbeans/modules/web/client/javascript/debugger/ant/antlib.xml
Could not load definitions from resource org/apache/tools/ant/antlib.xml. It could not be found.
parsing buildfile jar:file:/home/cety/netbeans-6.7/enterprise5/ant/nblib/org-netbeans-modules-web-client-javascript-debugger-ant.jar!/org/netbeans/modules/web/client/javascript/debugger/ant/antlib.xml with URI = jar:file:/home/cety/netbeans-6.7/enterprise5/ant/nblib/org-netbeans-modules-web-client-javascript-debugger-ant.jar!/org/netbeans/modules/web/client/javascript/debugger/ant/antlib.xml
parsing buildfile jar:file:/home/cety/netbeans-6.7/java2/ant/nblib/org-netbeans-modules-debugger-jpda-ant.jar!/org/netbeans/modules/debugger/jpda/ant/antlib.xml with URI = jar:file:/home/cety/netbeans-6.7/java2/ant/nblib/org-netbeans-modules-debugger-jpda-ant.jar!/org/netbeans/modules/debugger/jpda/ant/antlib.xml
parsing buildfile jar:file:/home/cety/netbeans-6.7/java2/ant/nblib/org-netbeans-modules-debugger-jpda-ant.jar!/org/netbeans/modules/debugger/jpda/ant/antlib.xml with URI = jar:file:/home/cety/netbeans-6.7/java2/ant/nblib/org-netbeans-modules-debugger-jpda-ant.jar!/org/netbeans/modules/debugger/jpda/ant/antlib.xml
parsing buildfile jar:file:/home/cety/netbeans-6.7/java2/ant/nblib/org-netbeans-modules-ant-browsetask.jar!/org/netbeans/modules/ant/browsetask/antlib.xml with URI = jar:file:/home/cety/netbeans-6.7/java2/ant/nblib/org-netbeans-modules-ant-browsetask.jar!/org/netbeans/modules/ant/browsetask/antlib.xml
parsing buildfile jar:file:/home/cety/netbeans-6.7/java2/ant/nblib/org-netbeans-modules-ant-browsetask.jar!/org/netbeans/modules/ant/browsetask/antlib.xml with URI = jar:file:/home/cety/netbeans-6.7/java2/ant/nblib/org-netbeans-modules-ant-browsetask.jar!/org/netbeans/modules/ant/browsetask/antlib.xml
parsing buildfile jar:file:/home/cety/netbeans-6.7/java2/ant/nblib/org-netbeans-modules-javawebstart.jar!/org/netbeans/modules/javawebstart/antlib.xml with URI = jar:file:/home/cety/netbeans-6.7/java2/ant/nblib/org-netbeans-modules-javawebstart.jar!/org/netbeans/modules/javawebstart/antlib.xml
parsing buildfile jar:file:/home/cety/netbeans-6.7/java2/ant/nblib/org-netbeans-modules-javawebstart.jar!/org/netbeans/modules/javawebstart/antlib.xml with URI = jar:file:/home/cety/netbeans-6.7/java2/ant/nblib/org-netbeans-modules-javawebstart.jar!/org/netbeans/modules/javawebstart/antlib.xml
parsing buildfile jar:file:/home/cety/netbeans-6.7/profiler3/ant/nblib/org-netbeans-modules-profiler.jar!/org/netbeans/modules/profiler/antlib.xml with URI = jar:file:/home/cety/netbeans-6.7/profiler3/ant/nblib/org-netbeans-modules-profiler.jar!/org/netbeans/modules/profiler/antlib.xml
parsing buildfile jar:file:/home/cety/netbeans-6.7/profiler3/ant/nblib/org-netbeans-modules-profiler.jar!/org/netbeans/modules/profiler/antlib.xml with URI = jar:file:/home/cety/netbeans-6.7/profiler3/ant/nblib/org-netbeans-modules-profiler.jar!/org/netbeans/modules/profiler/antlib.xml
parsing buildfile jar:file:/home/cety/.netbeans/6.7/ant/nblib/org-netbeans-modules-android-ant.jar!/org/netbeans/modules/android/ant/antlib.xml with URI = jar:file:/home/cety/.netbeans/6.7/ant/nblib/org-netbeans-modules-android-ant.jar!/org/netbeans/modules/android/ant/antlib.xml
parsing buildfile jar:file:/home/cety/.netbeans/6.7/ant/nblib/org-netbeans-modules-android-ant.jar!/org/netbeans/modules/android/ant/antlib.xml with URI = jar:file:/home/cety/.netbeans/6.7/ant/nblib/org-netbeans-modules-android-ant.jar!/org/netbeans/modules/android/ant/antlib.xml
parsing buildfile jar:file:/home/cety/netbeans-6.7/enterprise5/ant/nblib/org-netbeans-modules-j2ee-ant.jar!/org/netbeans/modules/j2ee/ant/antlib.xml with URI = jar:file:/home/cety/netbeans-6.7/enterprise5/ant/nblib/org-netbeans-modules-j2ee-ant.jar!/org/netbeans/modules/j2ee/ant/antlib.xml
parsing buildfile jar:file:/home/cety/netbeans-6.7/enterprise5/ant/nblib/org-netbeans-modules-j2ee-ant.jar!/org/netbeans/modules/j2ee/ant/antlib.xml with URI = jar:file:/home/cety/netbeans-6.7/enterprise5/ant/nblib/org-netbeans-modules-j2ee-ant.jar!/org/netbeans/modules/j2ee/ant/antlib.xml
parsing buildfile jar:file:/home/cety/netbeans-6.7/identity2/ant/nblib/org-netbeans-modules-identity-ant.jar!/org/netbeans/modules/identity/ant/antlib.xml with URI = jar:file:/home/cety/netbeans-6.7/identity2/ant/nblib/org-netbeans-modules-identity-ant.jar!/org/netbeans/modules/identity/ant/antlib.xml
parsing buildfile jar:file:/home/cety/netbeans-6.7/identity2/ant/nblib/org-netbeans-modules-identity-ant.jar!/org/netbeans/modules/identity/ant/antlib.xml with URI = jar:file:/home/cety/netbeans-6.7/identity2/ant/nblib/org-netbeans-modules-identity-ant.jar!/org/netbeans/modules/identity/ant/antlib.xml
parsing buildfile jar:file:/home/cety/netbeans-6.7/enterprise5/ant/nblib/org-netbeans-modules-j2ee-sun-appsrv81.jar!/org/netbeans/modules/j2ee/sun/appsrv81/antlib.xml with URI = jar:file:/home/cety/netbeans-6.7/enterprise5/ant/nblib/org-netbeans-modules-j2ee-sun-appsrv81.jar!/org/netbeans/modules/j2ee/sun/appsrv81/antlib.xml
parsing buildfile jar:file:/home/cety/netbeans-6.7/enterprise5/ant/nblib/org-netbeans-modules-j2ee-sun-appsrv81.jar!/org/netbeans/modules/j2ee/sun/appsrv81/antlib.xml with URI = jar:file:/home/cety/netbeans-6.7/enterprise5/ant/nblib/org-netbeans-modules-j2ee-sun-appsrv81.jar!/org/netbeans/modules/j2ee/sun/appsrv81/antlib.xml
parsing buildfile jar:file:/home/cety/netbeans-6.7/java2/ant/nblib/org-netbeans-modules-java-source-ant.jar!/org/netbeans/modules/java/source/ant/antlib.xml with URI = jar:file:/home/cety/netbeans-6.7/java2/ant/nblib/org-netbeans-modules-java-source-ant.jar!/org/netbeans/modules/java/source/ant/antlib.xml
Trying to override old definition of task javac
parsing buildfile jar:file:/home/cety/netbeans-6.7/java2/ant/nblib/org-netbeans-modules-java-source-ant.jar!/org/netbeans/modules/java/source/ant/antlib.xml with URI = jar:file:/home/cety/netbeans-6.7/java2/ant/nblib/org-netbeans-modules-java-source-ant.jar!/org/netbeans/modules/java/source/ant/antlib.xml
parsing buildfile jar:file:/home/cety/netbeans-6.7/apisupport1/ant/nblib/org-netbeans-modules-apisupport-ant.jar!/org/netbeans/modules/apisupport/ant/antlib.xml with URI = jar:file:/home/cety/netbeans-6.7/apisupport1/ant/nblib/org-netbeans-modules-apisupport-ant.jar!/org/netbeans/modules/apisupport/ant/antlib.xml
parsing buildfile jar:file:/home/cety/netbeans-6.7/apisupport1/ant/nblib/org-netbeans-modules-apisupport-ant.jar!/org/netbeans/modules/apisupport/ant/antlib.xml with URI = jar:file:/home/cety/netbeans-6.7/apisupport1/ant/nblib/org-netbeans-modules-apisupport-ant.jar!/org/netbeans/modules/apisupport/ant/antlib.xml
parsing buildfile /home/android/workbin/AndroidApplication21/build.xml with URI = file:/home/android/workbin/AndroidApplication21/build.xml
Project base dir set to: /home/android/workbin/AndroidApplication21
Importing file /home/android/workbin/AndroidApplication21/nbproject/build-impl.xml from /home/android/workbin/AndroidApplication21/build.xml
parsing buildfile /home/android/workbin/AndroidApplication21/nbproject/build-impl.xml with URI = file:/home/android/workbin/AndroidApplication21/nbproject/build-impl.xml
Build sequence for target(s) `jar' is [-pre-init, -init-private, -init-user, -init-project, -init-macrodef-property, -do-init, -post-init, -init-check, -init-macrodef-javac, -init-macrodef-junit, -init-macrodef-nbjpda, -init-debug-args, -init-macrodef-debug, -init-macrodef-java, init, deps-jar, -pre-pre-compile, -pre-compile, -res-compile, -res-compile1, -idl-compile, -compile-depend, -do-compile, -post-compile, compile, -pre-jar, -pre-pre-jar, -dex, -package-res-and-assets, -package-res-no-assets, -package-res-and-assets1, -package-res-no-assets1, -package-dex, -sign, -post-jar, jar]
Complete build sequence is [-pre-init, -init-private, -init-user, -init-project, -init-macrodef-property, -do-init, -post-init, -init-check, -init-macrodef-javac, -init-macrodef-junit, -init-macrodef-nbjpda, -init-debug-args, -init-macrodef-debug, -init-macrodef-java, init, deps-jar, -pre-pre-compile, -pre-compile, -res-compile, -res-compile1, -idl-compile, -compile-depend, -do-compile, -post-compile, compile, -pre-jar, -pre-pre-jar, -dex, -package-res-and-assets, -package-res-no-assets, -package-res-and-assets1, -package-res-no-assets1, -package-dex, -sign, -post-jar, jar, AndroidApplication21-impl.-sign, AndroidApplication21-impl.-init-private, AndroidApplication21-impl.-emulator-running, AndroidApplication21-impl.-init-project, -debug-start-debugger-stepinto, -emulator-running, -start-emulator, -wait-for-emulator, -install-app, -debug-start-debuggee, debug-stepinto, -post-compile-single, AndroidApplication21-impl.-post-compile-single, AndroidApplication21-impl.-compile-depend, -pre-pre-compile-test, -pre-compile-test, -compile-test-depend, -do-compile-test, -post-compile-test, compile-test, -pre-test-run, -do-test-run, -post-test-run, -debug-start-debugger, debug, AndroidApplication21-impl.-idl-compile, -pre-compile-test-single, -do-compile-test-single, -post-compile-test-single, AndroidApplication21-impl.compile-test-single, AndroidApplication21-impl.init, AndroidApplication21-impl.-do-compile, AndroidApplication21-impl.-post-compile-test, -javadoc-build, AndroidApplication21-impl.-javadoc-browse, -do-not-recompile, compile-test-single, -debug-start-debugger-test, -debug-start-debuggee-test, AndroidApplication21-impl.debug-test, AndroidApplication21-impl.-compile-test-depend, AndroidApplication21-impl.-pre-pre-compile, test-report, -test-browse, test, AndroidApplication21-impl.-pre-init, AndroidApplication21-impl.-init-macrodef-junit, AndroidApplication21-impl.-wait-for-emulator, AndroidApplication21-impl.-debug-start-debugger-test, AndroidApplication21-impl.-pre-compile-test, -javadoc-browse, javadoc, AndroidApplication21-impl.-res-compile, AndroidApplication21-impl.-test-browse, run, -pre-compile-single, -do-compile-single, AndroidApplication21-impl.compile-single, AndroidApplication21-impl.-do-init, AndroidApplication21-impl.test, -pre-test-run-single, -do-test-run-single, -post-test-run-single, AndroidApplication21-impl.test-single, AndroidApplication21-impl.-post-test-run-single, AndroidApplication21-impl.-pre-pre-jar, -post-clean, AndroidApplication21-impl.-pre-compile-test-single, AndroidApplication21-impl.javadoc, AndroidApplication21-impl.-package-res-no-assets, AndroidApplication21-impl.-post-init, AndroidApplication21-impl.-start-emulator, AndroidApplication21-impl.-init-user, AndroidApplication21-impl.-do-compile-test-single, AndroidApplication21-impl.-do-not-recompile, AndroidApplication21-impl.-init-macrodef-property, AndroidApplication21-impl.-package-res-and-assets1, AndroidApplication21-impl.-init-macrodef-javac, AndroidApplication21-impl.-pre-test-run-single, AndroidApplication21-impl.-pre-pre-compile-test, default, AndroidApplication21-impl.-install-app, AndroidApplication21-impl.-pre-compile-single, AndroidApplication21-impl.-post-jar, AndroidApplication21-impl.-dex, AndroidApplication21-impl.default, AndroidApplication21-impl.-do-test-run-single, deps-clean, AndroidApplication21-impl.jar, AndroidApplication21-impl.-init-macrodef-debug, AndroidApplication21-impl.-post-compile, AndroidApplication21-impl.compile, debug-test, AndroidApplication21-impl.debug-stepinto, AndroidApplication21-impl.-package-res-and-assets, AndroidApplication21-impl.-pre-jar, AndroidApplication21-impl.-post-test-run, AndroidApplication21-impl.-init-macrodef-nbjpda, AndroidApplication21-impl.-pre-compile, AndroidApplication21-impl.-res-compile1, compile-single, AndroidApplication21-impl.-package-res-no-assets1, AndroidApplication21-impl.-do-test-run, test-single, AndroidApplication21-impl.-do-compile-single, AndroidApplication21-impl.-debug-start-debugger-stepinto, AndroidApplication21-impl.-init-check, AndroidApplication21-impl.-pre-test-run, -do-clean, AndroidApplication21-impl.clean, AndroidApplication21-impl.-debug-start-debuggee-test, AndroidApplication21-impl.-post-clean, AndroidApplication21-impl.compile-test, AndroidApplication21-impl.run, AndroidApplication21-impl.-package-dex, AndroidApplication21-impl.-do-compile-test, AndroidApplication21-impl.-do-clean, AndroidApplication21-impl.-debug-start-debugger, AndroidApplication21-impl.-debug-start-debuggee, AndroidApplication21-impl.deps-clean, AndroidApplication21-impl.debug, AndroidApplication21-impl.-post-compile-test-single, clean, AndroidApplication21-impl.-init-macrodef-java, AndroidApplication21-impl.test-report, AndroidApplication21-impl.deps-jar, AndroidApplication21-impl.-init-debug-args, AndroidApplication21-impl.-javadoc-build, ]
-pre-init:
-init-private:
Loading /home/android/workbin/AndroidApplication21/nbproject/private/config.properties
Property "config" has not been set
Loading /home/android/workbin/AndroidApplication21/nbproject/private/configs/${config}.properties
Unable to find property file: /home/android/workbin/AndroidApplication21/nbproject/private/configs/${config}.properties
Loading /home/android/workbin/AndroidApplication21/nbproject/private/private.properties
-init-user:
Loading /home/cety/.netbeans/6.7/build.properties
Property "j2ee.platform.classpath" has not been set
Override ignored for property "default.javac.source"
Override ignored for property "default.javac.target"
-init-project:
Property "config" has not been set
Loading /home/android/workbin/AndroidApplication21/nbproject/configs/${config}.properties
Unable to find property file: /home/android/workbin/AndroidApplication21/nbproject/configs/${config}.properties
Loading /home/android/workbin/AndroidApplication21/nbproject/project.properties
-init-macrodef-property:
creating macro http://www.netbeans.org/ns/android-project/1:property
-do-init:
Property "platforms.Android.bootclasspath1" has not been set
Found: manifest.mf
Found: test
Found: src
Override ignored for property "run.jvmargs"
Override ignored for property "javac.compilerargs"
Property "no.dependencies" has not been set
Override ignored for property "javac.debug"
Override ignored for property "javadoc.preview"
Override ignored for property "source.encoding"
Override ignored for property "javadoc.encoding.used"
Override ignored for property "includes"
Override ignored for property "excludes"
Override ignored for property "do.depend"
Property "jaxws.endorsed.dir" has not been set
Override ignored for property "emulator.options"
-post-init:
-init-check:
-init-macrodef-javac:
creating macro http://www.netbeans.org/ns/android-project/1:javac
creating macro http://www.netbeans.org/ns/android-project/1:depend
creating macro http://www.netbeans.org/ns/android-project/1:force-recompile
-init-macrodef-junit:
creating macro http://www.netbeans.org/ns/android-project/1:junit
-init-macrodef-nbjpda:
creating macro http://www.netbeans.org/ns/android-project/1:nbjpdastart
creating macro http://www.netbeans.org/ns/android-project/1:nbjpdaconnect
creating macro http://www.netbeans.org/ns/android-project/1:nbjpdareload
-init-debug-args:
Property "have-jdk-older-than-1.4" has not been set
-init-macrodef-debug:
creating macro http://www.netbeans.org/ns/android-project/1:debug
-init-macrodef-java:
creating macro http://www.netbeans.org/ns/android-project/1:java
init:
deps-jar:
-pre-pre-compile:
Skipping /home/android/workbin/AndroidApplication21/build/classes because it already exists.
-pre-compile:
-res-compile:
Current OS is Linux
Executing '/home/android/workbin/android-sdk-linux_x86-1.5_r2/platforms/android-1.5/tools/aapt' with arguments:
'package'
'-m'
'-J'
'src'
'-M'
'AndroidManifest.xml'
'-S'
'res'
'-I'
'/home/android/workbin/android-sdk-linux_x86-1.5_r2/platforms/android-1.5/android.jar'
The ' characters around the executable and arguments are
not part of the command.
-res-compile1:
Skipped because property 'bootclasspath1.available' not set.
-idl-compile:
-compile-depend:
Skipped because property 'do.depend.true' not set.
-do-compile:
org/me/androidapplication21/MainActivity.java omitted as /home/android/workbin/AndroidApplication21/build/classes/org/me/androidapplication21/MainActivity.class is up to date.
org/me/androidapplication21/R.java added as org/me/androidapplication21/R.class is outdated.
Compiling 1 source file to /home/android/workbin/AndroidApplication21/build/classes
Using modern compiler
Compilation arguments:
'-d'
'/home/android/workbin/AndroidApplication21/build/classes'
'-classpath'
'/home/android/workbin/AndroidApplication21/build/classes'
'-target'
'1.5'
'-bootclasspath'
'/home/android/workbin/android-sdk-linux_x86-1.5_r2/platforms/android-1.5/android.jar'
'-encoding'
'UTF-8'
'-g'
'-source'
'1.5'
The ' characters around the executable and arguments are
not part of the command.
File to be compiled:
/home/android/workbin/AndroidApplication21/src/org/me/androidapplication21/R.java
No sources found.
omitted as /home/android/workbin/AndroidApplication21/build/classes is up to date.
org omitted as /home/android/workbin/AndroidApplication21/build/classes/org is up to date.
org/me omitted as /home/android/workbin/AndroidApplication21/build/classes/org/me is up to date.
org/me/androidapplication21 omitted as /home/android/workbin/AndroidApplication21/build/classes/org/me/androidapplication21 is up to date.
-post-compile:
compile:
-pre-jar:
-pre-pre-jar:
Skipping /home/android/workbin/AndroidApplication21/dist because it already exists.
-dex:
Current OS is Linux
Executing '/home/android/workbin/android-sdk-linux_x86-1.5_r2/tools/dx' with arguments:
'--dex'
'--output=/home/android/workbin/AndroidApplication21/build/classes.dex'
'--positions=lines'
'/home/android/workbin/AndroidApplication21/build/classes'
The ' characters around the executable and arguments are
not part of the command.

trouble processing:
invalid constant pool index 0000
...while parsing attributes[1]
...while parsing Code attribute at offset 00000120
...while parsing attributes[0]
...while parsing methods[0]
...while parsing org/me/androidapplication21/R$attr.class
...while processing org/me/androidapplication21/R$attr.class

trouble processing:
invalid constant pool index 0000
...while parsing attributes[1]
...while parsing Code attribute at offset 00000181
...while parsing attributes[0]
...while parsing methods[0]
...while parsing org/me/androidapplication21/R.class
...while processing org/me/androidapplication21/R.class

trouble processing:
invalid constant pool index 0000
...while parsing attributes[1]
...while parsing Code attribute at offset 00000156
...while parsing attributes[0]
...while parsing methods[0]
...while parsing org/me/androidapplication21/R$layout.class
...while processing org/me/androidapplication21/R$layout.class

trouble processing:
invalid constant pool index 0000
...while parsing attributes[1]
...while parsing Code attribute at offset 0000014f
...while parsing attributes[0]
...while parsing methods[0]
...while parsing org/me/androidapplication21/MainActivity.class
...while processing org/me/androidapplication21/MainActivity.class

trouble processing:
invalid constant pool index 0000
...while parsing attributes[1]
...while parsing Code attribute at offset 0000015a
...while parsing attributes[0]
...while parsing methods[0]
...while parsing org/me/androidapplication21/R$string.class
...while processing org/me/androidapplication21/R$string.class
5 warnings
no classfiles specified
/home/android/workbin/AndroidApplication21/nbproject/build-impl.xml:424: exec returned: 1
at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:636)
at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:662)
at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:487)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.GeneratedMethodAccessor125.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
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:278)
at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:497)
at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:151)
BUILD FAILED (total time: 2 seconds)


ceyt added a comment - 24/Jul/09 01:37 AM

java version : java version "1.5.0_19"
dx version : dx version 1.2


radim added a comment - 24/Jul/09 02:03 AM

Where does your Android SDK comes from? I see that the build runs
/home/android/workbin/android-sdk-linux_x86-1.5_r2/tools/dx
and compared to mine I noticed that there is no tools/dx in my Android SDK - it should be one of the platforms/android-1.x/tools/dx.


ceyt added a comment - 24/Jul/09 02:34 AM

according to this http://kenai.com/projects/nbandroid/forums/forum/topics/657-Unable-to-add-the-android-platform-in-netbean-6-5. i try to copy /home/android/workbin/android-sdk-linux_x86-1.5_r2/platforms/android1.5/* to /home/android/workbin/android-sdk-linux_x86-1.5_r2. and it merge with the folder tools in /home/android/workbin/android-sdk-linux_x86-1.5_r2/tools


ceyt added a comment - 24/Jul/09 02:42 AM

here it is. i run it without copy ~/platforms/android1.5/* to /home/android/workbin/android-sdk-linux_x86-1.5_r2/

Detected Java version: 1.5 in: /usr/java/jdk1.5.0_19/jre
Detected OS: Linux
Trying to override old definition of task java
parsing buildfile jar:file:/home/cety/netbeans-6.7/java2/ant/nblib/org-netbeans-modules-ant-browsetask.jar!/org/netbeans/modules/ant/browsetask/antlib.xml with URI = jar:file:/home/cety/netbeans-6.7/java2/ant/nblib/org-netbeans-modules-ant-browsetask.jar!/org/netbeans/modules/ant/browsetask/antlib.xml
Could not load definitions from resource org/apache/tools/ant/antlib.xml. It could not be found.
parsing buildfile jar:file:/home/cety/netbeans-6.7/java2/ant/nblib/org-netbeans-modules-ant-browsetask.jar!/org/netbeans/modules/ant/browsetask/antlib.xml with URI = jar:file:/home/cety/netbeans-6.7/java2/ant/nblib/org-netbeans-modules-ant-browsetask.jar!/org/netbeans/modules/ant/browsetask/antlib.xml
parsing buildfile jar:file:/home/cety/netbeans-6.7/enterprise5/ant/nblib/org-netbeans-modules-web-client-javascript-debugger-ant.jar!/org/netbeans/modules/web/client/javascript/debugger/ant/antlib.xml with URI = jar:file:/home/cety/netbeans-6.7/enterprise5/ant/nblib/org-netbeans-modules-web-client-javascript-debugger-ant.jar!/org/netbeans/modules/web/client/javascript/debugger/ant/antlib.xml
parsing buildfile jar:file:/home/cety/netbeans-6.7/enterprise5/ant/nblib/org-netbeans-modules-web-client-javascript-debugger-ant.jar!/org/netbeans/modules/web/client/javascript/debugger/ant/antlib.xml with URI = jar:file:/home/cety/netbeans-6.7/enterprise5/ant/nblib/org-netbeans-modules-web-client-javascript-debugger-ant.jar!/org/netbeans/modules/web/client/javascript/debugger/ant/antlib.xml
parsing buildfile jar:file:/home/cety/netbeans-6.7/java2/ant/nblib/org-netbeans-modules-debugger-jpda-ant.jar!/org/netbeans/modules/debugger/jpda/ant/antlib.xml with URI = jar:file:/home/cety/netbeans-6.7/java2/ant/nblib/org-netbeans-modules-debugger-jpda-ant.jar!/org/netbeans/modules/debugger/jpda/ant/antlib.xml
parsing buildfile jar:file:/home/cety/netbeans-6.7/java2/ant/nblib/org-netbeans-modules-debugger-jpda-ant.jar!/org/netbeans/modules/debugger/jpda/ant/antlib.xml with URI = jar:file:/home/cety/netbeans-6.7/java2/ant/nblib/org-netbeans-modules-debugger-jpda-ant.jar!/org/netbeans/modules/debugger/jpda/ant/antlib.xml
parsing buildfile jar:file:/home/cety/netbeans-6.7/java2/ant/nblib/org-netbeans-modules-javawebstart.jar!/org/netbeans/modules/javawebstart/antlib.xml with URI = jar:file:/home/cety/netbeans-6.7/java2/ant/nblib/org-netbeans-modules-javawebstart.jar!/org/netbeans/modules/javawebstart/antlib.xml
parsing buildfile jar:file:/home/cety/netbeans-6.7/java2/ant/nblib/org-netbeans-modules-javawebstart.jar!/org/netbeans/modules/javawebstart/antlib.xml with URI = jar:file:/home/cety/netbeans-6.7/java2/ant/nblib/org-netbeans-modules-javawebstart.jar!/org/netbeans/modules/javawebstart/antlib.xml
parsing buildfile jar:file:/home/cety/netbeans-6.7/profiler3/ant/nblib/org-netbeans-modules-profiler.jar!/org/netbeans/modules/profiler/antlib.xml with URI = jar:file:/home/cety/netbeans-6.7/profiler3/ant/nblib/org-netbeans-modules-profiler.jar!/org/netbeans/modules/profiler/antlib.xml
parsing buildfile jar:file:/home/cety/netbeans-6.7/profiler3/ant/nblib/org-netbeans-modules-profiler.jar!/org/netbeans/modules/profiler/antlib.xml with URI = jar:file:/home/cety/netbeans-6.7/profiler3/ant/nblib/org-netbeans-modules-profiler.jar!/org/netbeans/modules/profiler/antlib.xml
parsing buildfile jar:file:/home/cety/netbeans-6.7/enterprise5/ant/nblib/org-netbeans-modules-j2ee-ant.jar!/org/netbeans/modules/j2ee/ant/antlib.xml with URI = jar:file:/home/cety/netbeans-6.7/enterprise5/ant/nblib/org-netbeans-modules-j2ee-ant.jar!/org/netbeans/modules/j2ee/ant/antlib.xml
parsing buildfile jar:file:/home/cety/netbeans-6.7/enterprise5/ant/nblib/org-netbeans-modules-j2ee-ant.jar!/org/netbeans/modules/j2ee/ant/antlib.xml with URI = jar:file:/home/cety/netbeans-6.7/enterprise5/ant/nblib/org-netbeans-modules-j2ee-ant.jar!/org/netbeans/modules/j2ee/ant/antlib.xml
parsing buildfile jar:file:/home/cety/.netbeans/6.7/ant/nblib/org-netbeans-modules-android-ant.jar!/org/netbeans/modules/android/ant/antlib.xml with URI = jar:file:/home/cety/.netbeans/6.7/ant/nblib/org-netbeans-modules-android-ant.jar!/org/netbeans/modules/android/ant/antlib.xml
parsing buildfile jar:file:/home/cety/.netbeans/6.7/ant/nblib/org-netbeans-modules-android-ant.jar!/org/netbeans/modules/android/ant/antlib.xml with URI = jar:file:/home/cety/.netbeans/6.7/ant/nblib/org-netbeans-modules-android-ant.jar!/org/netbeans/modules/android/ant/antlib.xml
parsing buildfile jar:file:/home/cety/netbeans-6.7/identity2/ant/nblib/org-netbeans-modules-identity-ant.jar!/org/netbeans/modules/identity/ant/antlib.xml with URI = jar:file:/home/cety/netbeans-6.7/identity2/ant/nblib/org-netbeans-modules-identity-ant.jar!/org/netbeans/modules/identity/ant/antlib.xml
parsing buildfile jar:file:/home/cety/netbeans-6.7/identity2/ant/nblib/org-netbeans-modules-identity-ant.jar!/org/netbeans/modules/identity/ant/antlib.xml with URI = jar:file:/home/cety/netbeans-6.7/identity2/ant/nblib/org-netbeans-modules-identity-ant.jar!/org/netbeans/modules/identity/ant/antlib.xml
parsing buildfile jar:file:/home/cety/netbeans-6.7/enterprise5/ant/nblib/org-netbeans-modules-j2ee-sun-appsrv81.jar!/org/netbeans/modules/j2ee/sun/appsrv81/antlib.xml with URI = jar:file:/home/cety/netbeans-6.7/enterprise5/ant/nblib/org-netbeans-modules-j2ee-sun-appsrv81.jar!/org/netbeans/modules/j2ee/sun/appsrv81/antlib.xml
parsing buildfile jar:file:/home/cety/netbeans-6.7/enterprise5/ant/nblib/org-netbeans-modules-j2ee-sun-appsrv81.jar!/org/netbeans/modules/j2ee/sun/appsrv81/antlib.xml with URI = jar:file:/home/cety/netbeans-6.7/enterprise5/ant/nblib/org-netbeans-modules-j2ee-sun-appsrv81.jar!/org/netbeans/modules/j2ee/sun/appsrv81/antlib.xml
parsing buildfile jar:file:/home/cety/netbeans-6.7/apisupport1/ant/nblib/org-netbeans-modules-apisupport-ant.jar!/org/netbeans/modules/apisupport/ant/antlib.xml with URI = jar:file:/home/cety/netbeans-6.7/apisupport1/ant/nblib/org-netbeans-modules-apisupport-ant.jar!/org/netbeans/modules/apisupport/ant/antlib.xml
parsing buildfile jar:file:/home/cety/netbeans-6.7/apisupport1/ant/nblib/org-netbeans-modules-apisupport-ant.jar!/org/netbeans/modules/apisupport/ant/antlib.xml with URI = jar:file:/home/cety/netbeans-6.7/apisupport1/ant/nblib/org-netbeans-modules-apisupport-ant.jar!/org/netbeans/modules/apisupport/ant/antlib.xml
parsing buildfile jar:file:/home/cety/netbeans-6.7/java2/ant/nblib/org-netbeans-modules-java-source-ant.jar!/org/netbeans/modules/java/source/ant/antlib.xml with URI = jar:file:/home/cety/netbeans-6.7/java2/ant/nblib/org-netbeans-modules-java-source-ant.jar!/org/netbeans/modules/java/source/ant/antlib.xml
Trying to override old definition of task javac
parsing buildfile jar:file:/home/cety/netbeans-6.7/java2/ant/nblib/org-netbeans-modules-java-source-ant.jar!/org/netbeans/modules/java/source/ant/antlib.xml with URI = jar:file:/home/cety/netbeans-6.7/java2/ant/nblib/org-netbeans-modules-java-source-ant.jar!/org/netbeans/modules/java/source/ant/antlib.xml
parsing buildfile /home/android/workbin/AndroidApplication21/build.xml with URI = file:/home/android/workbin/AndroidApplication21/build.xml
Project base dir set to: /home/android/workbin/AndroidApplication21
Importing file /home/android/workbin/AndroidApplication21/nbproject/build-impl.xml from /home/android/workbin/AndroidApplication21/build.xml
parsing buildfile /home/android/workbin/AndroidApplication21/nbproject/build-impl.xml with URI = file:/home/android/workbin/AndroidApplication21/nbproject/build-impl.xml
Build sequence for target(s) `jar' is [-pre-init, -init-private, -init-user, -init-project, -init-macrodef-property, -do-init, -post-init, -init-check, -init-macrodef-javac, -init-macrodef-junit, -init-macrodef-nbjpda, -init-debug-args, -init-macrodef-debug, -init-macrodef-java, init, deps-jar, -pre-pre-compile, -pre-compile, -res-compile, -res-compile1, -idl-compile, -compile-depend, -do-compile, -post-compile, compile, -pre-jar, -pre-pre-jar, -dex, -package-res-and-assets, -package-res-no-assets, -package-res-and-assets1, -package-res-no-assets1, -package-dex, -sign, -post-jar, jar]
Complete build sequence is [-pre-init, -init-private, -init-user, -init-project, -init-macrodef-property, -do-init, -post-init, -init-check, -init-macrodef-javac, -init-macrodef-junit, -init-macrodef-nbjpda, -init-debug-args, -init-macrodef-debug, -init-macrodef-java, init, deps-jar, -pre-pre-compile, -pre-compile, -res-compile, -res-compile1, -idl-compile, -compile-depend, -do-compile, -post-compile, compile, -pre-jar, -pre-pre-jar, -dex, -package-res-and-assets, -package-res-no-assets, -package-res-and-assets1, -package-res-no-assets1, -package-dex, -sign, -post-jar, jar, AndroidApplication21-impl.-sign, AndroidApplication21-impl.-init-private, AndroidApplication21-impl.-emulator-running, AndroidApplication21-impl.-init-project, -debug-start-debugger-stepinto, -emulator-running, -start-emulator, -wait-for-emulator, -install-app, -debug-start-debuggee, debug-stepinto, -post-compile-single, AndroidApplication21-impl.-post-compile-single, AndroidApplication21-impl.-compile-depend, -pre-pre-compile-test, -pre-compile-test, -compile-test-depend, -do-compile-test, -post-compile-test, compile-test, -pre-test-run, -do-test-run, -post-test-run, -debug-start-debugger, debug, AndroidApplication21-impl.-idl-compile, -pre-compile-test-single, -do-compile-test-single, -post-compile-test-single, AndroidApplication21-impl.compile-test-single, AndroidApplication21-impl.init, AndroidApplication21-impl.-do-compile, AndroidApplication21-impl.-post-compile-test, -javadoc-build, AndroidApplication21-impl.-javadoc-browse, -do-not-recompile, compile-test-single, -debug-start-debugger-test, -debug-start-debuggee-test, AndroidApplication21-impl.debug-test, AndroidApplication21-impl.-compile-test-depend, AndroidApplication21-impl.-pre-pre-compile, test-report, -test-browse, test, AndroidApplication21-impl.-pre-init, AndroidApplication21-impl.-init-macrodef-junit, AndroidApplication21-impl.-wait-for-emulator, AndroidApplication21-impl.-debug-start-debugger-test, AndroidApplication21-impl.-pre-compile-test, -javadoc-browse, javadoc, AndroidApplication21-impl.-res-compile, AndroidApplication21-impl.-test-browse, run, -pre-compile-single, -do-compile-single, AndroidApplication21-impl.compile-single, AndroidApplication21-impl.-do-init, AndroidApplication21-impl.test, -pre-test-run-single, -do-test-run-single, -post-test-run-single, AndroidApplication21-impl.test-single, AndroidApplication21-impl.-post-test-run-single, AndroidApplication21-impl.-pre-pre-jar, -post-clean, AndroidApplication21-impl.-pre-compile-test-single, AndroidApplication21-impl.javadoc, AndroidApplication21-impl.-package-res-no-assets, AndroidApplication21-impl.-post-init, AndroidApplication21-impl.-start-emulator, AndroidApplication21-impl.-init-user, AndroidApplication21-impl.-do-compile-test-single, AndroidApplication21-impl.-do-not-recompile, AndroidApplication21-impl.-init-macrodef-property, AndroidApplication21-impl.-package-res-and-assets1, AndroidApplication21-impl.-init-macrodef-javac, AndroidApplication21-impl.-pre-test-run-single, AndroidApplication21-impl.-pre-pre-compile-test, default, AndroidApplication21-impl.-install-app, AndroidApplication21-impl.-pre-compile-single, AndroidApplication21-impl.-post-jar, AndroidApplication21-impl.-dex, AndroidApplication21-impl.default, AndroidApplication21-impl.-do-test-run-single, deps-clean, AndroidApplication21-impl.jar, AndroidApplication21-impl.-init-macrodef-debug, AndroidApplication21-impl.-post-compile, AndroidApplication21-impl.compile, debug-test, AndroidApplication21-impl.debug-stepinto, AndroidApplication21-impl.-package-res-and-assets, AndroidApplication21-impl.-pre-jar, AndroidApplication21-impl.-post-test-run, AndroidApplication21-impl.-init-macrodef-nbjpda, AndroidApplication21-impl.-pre-compile, AndroidApplication21-impl.-res-compile1, compile-single, AndroidApplication21-impl.-package-res-no-assets1, AndroidApplication21-impl.-do-test-run, test-single, AndroidApplication21-impl.-do-compile-single, AndroidApplication21-impl.-debug-start-debugger-stepinto, AndroidApplication21-impl.-init-check, AndroidApplication21-impl.-pre-test-run, -do-clean, AndroidApplication21-impl.clean, AndroidApplication21-impl.-debug-start-debuggee-test, AndroidApplication21-impl.-post-clean, AndroidApplication21-impl.compile-test, AndroidApplication21-impl.run, AndroidApplication21-impl.-package-dex, AndroidApplication21-impl.-do-compile-test, AndroidApplication21-impl.-do-clean, AndroidApplication21-impl.-debug-start-debugger, AndroidApplication21-impl.-debug-start-debuggee, AndroidApplication21-impl.deps-clean, AndroidApplication21-impl.debug, AndroidApplication21-impl.-post-compile-test-single, clean, AndroidApplication21-impl.-init-macrodef-java, AndroidApplication21-impl.test-report, AndroidApplication21-impl.deps-jar, AndroidApplication21-impl.-init-debug-args, AndroidApplication21-impl.-javadoc-build, ]
-pre-init:
-init-private:
Loading /home/android/workbin/AndroidApplication21/nbproject/private/config.properties
Property "config" has not been set
Loading /home/android/workbin/AndroidApplication21/nbproject/private/configs/${config}.properties
Unable to find property file: /home/android/workbin/AndroidApplication21/nbproject/private/configs/${config}.properties
Loading /home/android/workbin/AndroidApplication21/nbproject/private/private.properties
-init-user:
Loading /home/cety/.netbeans/6.7/build.properties
Property "j2ee.platform.classpath" has not been set
Override ignored for property "default.javac.source"
Override ignored for property "default.javac.target"
-init-project:
Property "config" has not been set
Loading /home/android/workbin/AndroidApplication21/nbproject/configs/${config}.properties
Unable to find property file: /home/android/workbin/AndroidApplication21/nbproject/configs/${config}.properties
Loading /home/android/workbin/AndroidApplication21/nbproject/project.properties
-init-macrodef-property:
creating macro http://www.netbeans.org/ns/android-project/1:property
-do-init:
Property "platforms.Android.bootclasspath1" has not been set
Found: manifest.mf
Found: test
Found: src
Override ignored for property "run.jvmargs"
Override ignored for property "javac.compilerargs"
Property "no.dependencies" has not been set
Override ignored for property "javac.debug"
Override ignored for property "javadoc.preview"
Override ignored for property "source.encoding"
Override ignored for property "javadoc.encoding.used"
Override ignored for property "includes"
Override ignored for property "excludes"
Override ignored for property "do.depend"
Property "jaxws.endorsed.dir" has not been set
Override ignored for property "emulator.options"
-post-init:
-init-check:
-init-macrodef-javac:
creating macro http://www.netbeans.org/ns/android-project/1:javac
creating macro http://www.netbeans.org/ns/android-project/1:depend
creating macro http://www.netbeans.org/ns/android-project/1:force-recompile
-init-macrodef-junit:
creating macro http://www.netbeans.org/ns/android-project/1:junit
-init-macrodef-nbjpda:
creating macro http://www.netbeans.org/ns/android-project/1:nbjpdastart
creating macro http://www.netbeans.org/ns/android-project/1:nbjpdaconnect
creating macro http://www.netbeans.org/ns/android-project/1:nbjpdareload
-init-debug-args:
Property "have-jdk-older-than-1.4" has not been set
-init-macrodef-debug:
creating macro http://www.netbeans.org/ns/android-project/1:debug
-init-macrodef-java:
creating macro http://www.netbeans.org/ns/android-project/1:java
init:
deps-jar:
-pre-pre-compile:
Skipping /home/android/workbin/AndroidApplication21/build/classes because it already exists.
-pre-compile:
-res-compile:
Current OS is Linux
Executing '/home/android/workbin/android-sdk-linux_x86-1.5_r2/platforms/android-1.5/tools/aapt' with arguments:
'package'
'-m'
'-J'
'src'
'-M'
'AndroidManifest.xml'
'-S'
'res'
'-I'
'/home/android/workbin/android-sdk-linux_x86-1.5_r2/platforms/android-1.5/android.jar'
The ' characters around the executable and arguments are
not part of the command.
-res-compile1:
Skipped because property 'bootclasspath1.available' not set.
-idl-compile:
-compile-depend:
Skipped because property 'do.depend.true' not set.
-do-compile:
org/me/androidapplication21/MainActivity.java omitted as /home/android/workbin/AndroidApplication21/build/classes/org/me/androidapplication21/MainActivity.class is up to date.
org/me/androidapplication21/R.java added as org/me/androidapplication21/R.class is outdated.
Compiling 1 source file to /home/android/workbin/AndroidApplication21/build/classes
Using modern compiler
Compilation arguments:
'-d'
'/home/android/workbin/AndroidApplication21/build/classes'
'-classpath'
'/home/android/workbin/AndroidApplication21/build/classes'
'-target'
'1.5'
'-bootclasspath'
'/home/android/workbin/android-sdk-linux_x86-1.5_r2/platforms/android-1.5/android.jar'
'-encoding'
'UTF-8'
'-g'
'-source'
'1.5'
The ' characters around the executable and arguments are
not part of the command.
File to be compiled:
/home/android/workbin/AndroidApplication21/src/org/me/androidapplication21/R.java
No sources found.
omitted as /home/android/workbin/AndroidApplication21/build/classes is up to date.
org omitted as /home/android/workbin/AndroidApplication21/build/classes/org is up to date.
org/me omitted as /home/android/workbin/AndroidApplication21/build/classes/org/me is up to date.
org/me/androidapplication21 omitted as /home/android/workbin/AndroidApplication21/build/classes/org/me/androidapplication21 is up to date.
-post-compile:
compile:
-pre-jar:
-pre-pre-jar:
Skipping /home/android/workbin/AndroidApplication21/dist because it already exists.
-dex:
Current OS is Linux
Executing '/home/android/workbin/android-sdk-linux_x86-1.5_r2/platforms/android-1.5/tools/dx' with arguments:
'--dex'
'--output=/home/android/workbin/AndroidApplication21/build/classes.dex'
'--positions=lines'
'/home/android/workbin/AndroidApplication21/build/classes'
The ' characters around the executable and arguments are
not part of the command.

trouble processing:
invalid constant pool index 0000
...while parsing attributes[1]
...while parsing Code attribute at offset 00000120
...while parsing attributes[0]
...while parsing methods[0]
...while parsing org/me/androidapplication21/R$attr.class
...while processing org/me/androidapplication21/R$attr.class

trouble processing:
invalid constant pool index 0000
...while parsing attributes[1]
...while parsing Code attribute at offset 00000181
...while parsing attributes[0]
...while parsing methods[0]
...while parsing org/me/androidapplication21/R.class
...while processing org/me/androidapplication21/R.class

trouble processing:
invalid constant pool index 0000
...while parsing attributes[1]
...while parsing Code attribute at offset 00000156
...while parsing attributes[0]
...while parsing methods[0]
...while parsing org/me/androidapplication21/R$layout.class
...while processing org/me/androidapplication21/R$layout.class

trouble processing:
invalid constant pool index 0000
...while parsing attributes[1]
...while parsing Code attribute at offset 0000014f
...while parsing attributes[0]
...while parsing methods[0]
...while parsing org/me/androidapplication21/MainActivity.class
...while processing org/me/androidapplication21/MainActivity.class

trouble processing:
invalid constant pool index 0000
...while parsing attributes[1]
...while parsing Code attribute at offset 0000015a
...while parsing attributes[0]
...while parsing methods[0]
...while parsing org/me/androidapplication21/R$string.class
...while processing org/me/androidapplication21/R$string.class
5 warnings
no classfiles specified
/home/android/workbin/AndroidApplication21/nbproject/build-impl.xml:424: exec returned: 1
at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:636)
at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:662)
at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:487)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.GeneratedMethodAccessor74.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
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:278)
at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:497)
at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:151)
BUILD FAILED (total time: 2 seconds)


radim added a comment - 24/Jul/09 04:15 AM

Sorry but these instructions seems bogus. Thanks for pointing to them - I added comments not to follow these anymore. Can you try from scratch with an unmodified Android SDK, empty NetBeans userdir and a new project? If this does not work it would be good to check if you can create/build and run a project using the tools in SDK itself.


ceyt added a comment - 24/Jul/09 07:53 AM

yes, i tried it again from the scratch but i still facing the some problem. ok, i will try it. thanks.


ceyt added a comment - 24/Jul/09 08:05 AM

problem solved. by installing openjdk-6-jre and sun-java6-jdk.
for ubuntu:
-go to terminal
-apt-get install openjdk-6-jre sun-java6-jdk


radim added a comment - 24/Jul/09 04:47 PM

OK, thanks.