Most likely you are running a Fedora system which already has Java
installed. Do a "which javac" to see if it comes from /usr/bin. If so,
that explains.

To fix this problem, add /usr/java/<jdk home>/bin in the front of your
PATH.

For exmple,

export PATH=~jsun/work/android/android-sdk_m5-rc15_linux-x86/tools/:/
usr/java/jdk1.5.0_15/bin/:$PATH

Cheers.

Jun

On Mar 25, 12:34 am, Tushar <[EMAIL PROTECTED]> wrote:
> Hi,
> I'm also facing exact same problem .  what could be issues with ? ant
> or the python script used for generating project ?
>
> Regards,
> Tushar
>
> On Mar 22, 12:56 pm, morph <[EMAIL PROTECTED]> wrote:
>
> > hi,
>
> > i ran into the same problem... i have the feeling it's some path-
> > related problem or similar?
> > i installed the sdk and the sun jdk1.6.0_05.
>
> > i added these paths:
>
> > export PATH=${PATH}:/opt/android-sdk_m5-rc15_linux-x86/tools
> > export JAVA_HOME=/opt/jdk
>
> > ------
>
> > $ ant -diagnostics
> > ------- Ant diagnostics report -------
> > Apache Ant version 1.7.0 compiled on February 26 2008
>
> > -------------------------------------------
> >  Implementation Version
> > -------------------------------------------
> > core tasks     : 1.7.0
> > optional tasks : not available
>
> > -------------------------------------------
> >  ANT PROPERTIES
> > -------------------------------------------
> > ant.version: Apache Ant version 1.7.0 compiled on February 26 2008
> > ant.java.version: 1.6
> > ant.core.lib: /usr/share/ant/lib/ant.jar
> > ant.home: /usr/share/ant
>
> > -------------------------------------------
> >  ANT_HOME/lib jar listing
> > -------------------------------------------
> > ant.home: /usr/share/ant
> > ant-javamail.jar (7187 bytes)
> > ant-antlr.jar (5933 bytes)
> > ant-commons-net.jar (47978 bytes)
> > ant-apache-bsf.jar (4068 bytes)
> > ant-trax.jar (6929 bytes)
> > tomcat5.5-jkstatus-ant.jar (30924 bytes)
> > ant.jar (1327739 bytes)
> > ant-apache-log4j.jar (3063 bytes)
> > ant-nodeps.jar (436677 bytes)
> > ant-apache-bcel.jar (8805 bytes)
> > ant-junit.jar (94285 bytes)
> > ant-apache-resolver.jar (4085 bytes)
> > jsch.jar (199957 bytes)
> > junit.jar (70424 bytes)
> > ant-apache-regexp.jar (3764 bytes)
> > ant-jmf.jar (6620 bytes)
> > ant-bootstrap.jar (16510 bytes)
> > catalina5.5-ant.jar (26646 bytes)
> > catalina5.5-ant-jmx.jar (23744 bytes)
> > ant-commons-logging.jar (4056 bytes)
> > ant-jdepend.jar (8311 bytes)
> > ant-jsch.jar (30661 bytes)
> > ant-apache-oro.jar (40165 bytes)
> > ant-swing.jar (6736 bytes)
> > bcel.jar (528648 bytes)
> > ant-launcher.jar (11837 bytes)
>
> > -------------------------------------------
> >  USER_HOME/.ant/lib jar listing
> > -------------------------------------------
> > user.home: /home/morpheus
> > No such directory.
>
> > -------------------------------------------
> >  Tasks availability
> > -------------------------------------------
> > image : Not Available (the implementation class is not present)
> > wlrun : Not Available (the implementation class is not present)
> > stlist : Not Available (the implementation class is not present)
> > netrexxc : Not Available (the implementation class is not present)
> > starteam : Not Available (the implementation class is not present)
> > stylebook : Not Available (the implementation class is not present)
> > stlabel : Not Available (the implementation class is not present)
> > jdepend : Missing dependency jdepend.xmlui.JDepend
> > stcheckin : Not Available (the implementation class is not present)
> > stcheckout : Not Available (the implementation class is not present)
> > ejbc : Not Available (the implementation class is not present)
> > wlstop : Not Available (the implementation class is not present)
> > ddcreator : Not Available (the implementation class is not present)
> > A task being missing/unavailable should only matter if you are trying
> > to use it
>
> > -------------------------------------------
> >  org.apache.env.Which diagnostics
> > -------------------------------------------
> > Not available.
> > Download it athttp://xml.apache.org/commons/
>
> > -------------------------------------------
> >  XML Parser information
> > -------------------------------------------
> > XML Parser : org.apache.xerces.jaxp.SAXParserImpl
> > XML Parser Location: /usr/share/java/xercesImpl.jar
> > Namespace-aware parser : org.apache.xerces.jaxp.SAXParserImpl
> > $JAXPSAXParser
> > Namespace-aware parser Location: /usr/share/java/xercesImpl.jar
>
> > -------------------------------------------
> >  System properties
> > -------------------------------------------
> > java.runtime.name : Java(TM) SE Runtime Environment
> > sun.boot.library.path : /opt/jdk1.6.0_05/jre/lib/amd64
> > java.vm.version : 10.0-b19
> > ant.library.dir : /usr/share/ant/lib
> > java.vm.vendor : Sun Microsystems Inc.
> > java.vendor.url :http://java.sun.com/
> > path.separator : :
> > java.vm.name : Java HotSpot(TM) 64-Bit Server VM
> > file.encoding.pkg : sun.io
> > user.country : US
> > sun.java.launcher : SUN_STANDARD
> > sun.os.patch.level : unknown
> > java.vm.specification.name : Java Virtual Machine Specification
> > user.dir : /data/dev/android/hello
> > java.runtime.version : 1.6.0_05-b13
> > java.awt.graphicsenv : sun.awt.X11GraphicsEnvironment
> > java.endorsed.dirs : /opt/jdk1.6.0_05/jre/lib/endorsed
> > os.arch : amd64
> > java.io.tmpdir : /tmp
> > line.separator :
>
> > java.vm.specification.vendor : Sun Microsystems Inc.
> > os.name : Linux
> > ant.home : /usr/share/ant
> > sun.jnu.encoding : UTF-8
> > java.library.path : /opt/jdk1.6.0_05/jre/lib/amd64/server:/opt/
> > jdk1.6.0_05/jre/lib/amd64:/opt/jdk1.6.0_05/jre/../lib/amd64:/usr/java/
> > packages/lib/amd64:/lib:/usr/lib
> > java.specification.name : Java Platform API Specification
> > java.class.version : 50.0
> > sun.management.compiler : HotSpot 64-Bit Server Compiler
> > os.version : 2.6.24
> > user.home : /home/morpheus
> > user.timezone : Japan
> > java.awt.printerjob : sun.print.PSPrinterJob
> > file.encoding : UTF-8
> > java.specification.version : 1.6
> > user.name : morpheus
> > java.class.path : /usr/share/ant/lib/ant-launcher.jar:/usr/share/java/
> > xmlParserAPIs.jar:/usr/share/java/xercesImpl.jar:/usr/share/ant/lib/
> > ant-javamail.jar:/usr/share/ant/lib/ant-antlr.jar:/usr/share/ant/lib/
> > ant-commons-net.jar:/usr/share/ant/lib/ant-apache-bsf.jar:/usr/share/
> > ant/lib/ant-trax.jar:/usr/share/ant/lib/tomcat5.5-jkstatus-ant.jar:/
> > usr/share/ant/lib/ant.jar:/usr/share/ant/lib/ant-apache-log4j.jar:/usr/
> > share/ant/lib/ant-nodeps.jar:/usr/share/ant/lib/ant-apache-bcel.jar:/
> > usr/share/ant/lib/ant-junit.jar:/usr/share/ant/lib/ant-apache-
> > resolver.jar:/usr/share/ant/lib/jsch.jar:/usr/share/ant/lib/junit.jar:/
> > usr/share/ant/lib/ant-apache-regexp.jar:/usr/share/ant/lib/ant-
> > jmf.jar:/usr/share/ant/lib/ant-bootstrap.jar:/usr/share/ant/lib/
> > catalina5.5-ant.jar:/usr/share/ant/lib/catalina5.5-ant-jmx.jar:/usr/
> > share/ant/lib/ant-commons-logging.jar:/usr/share/ant/lib/ant-
> > jdepend.jar:/usr/share/ant/lib/ant-jsch.jar:/usr/share/ant/lib/ant-
> > apache-oro.jar:/usr/share/ant/lib/ant-swing.jar:/usr/share/ant/lib/
> > bcel.jar:/usr/share/ant/lib/ant-launcher.jar:/opt/jdk1.6.0_05/lib/
> > tools.jar
> > java.vm.specification.version : 1.0
> > sun.arch.data.model : 64
> > java.home : /opt/jdk1.6.0_05/jre
> > java.specification.vendor : Sun Microsystems Inc.
> > user.language : en
> > java.vm.info : mixed mode
> > java.version : 1.6.0_05
> > java.ext.dirs : /opt/jdk1.6.0_05/jre/lib/ext:/usr/java/packages/lib/
> > ext
> > sun.boot.class.path : /opt/jdk1.6.0_05/jre/lib/resources.jar:/opt/
> > jdk1.6.0_05/jre/lib/rt.jar:/opt/jdk1.6.0_05/jre/lib/sunrsasign.jar:/
> > opt/jdk1.6.0_05/jre/lib/jsse.jar:/opt/jdk1.6.0_05/jre/lib/jce.jar:/opt/
> > jdk1.6.0_05/jre/lib/charsets.jar:/opt/jdk1.6.0_05/jre/classes
> > java.vendor : Sun Microsystems Inc.
> > file.separator : /
> > java.vendor.url.bug :http://java.sun.com/cgi-bin/bugreport.cgi
> > sun.cpu.endian : little
> > sun.io.unicode.encoding : UnicodeLittle
> > sun.cpu.isalist :
>
> > -------------------------------------------
> >  Temp dir
> > -------------------------------------------
> > Temp dir is /tmp
> > Temp dir is writeable
> > Temp dir alignment with system clock is -444 ms
>
> > -------------------------------------------
> >  Locale information
> > -------------------------------------------
> > Timezone Japan Standard Time offset=32400000
>
> > -------------------------------------------
> >  Proxy information
> > -------------------------------------------
> > Java1.5+ proxy settings:
> > Direct connection
>
> > ------
>
> > when i run ant this happens:
>
> > $ ant
> > Buildfile: build.xml
>
> > dirs:
>
> > resource-src:
> >      [echo] Generating R.java...
>
> > aidl:
>
> > compile:
> >     [javac] Compiling 2 source files to /data/dev/android/hello/bin/
> > classes
>
> > dex:
> >      [exec]
> >      [exec] trouble processing:
> >      [exec] invalid constant pool index 0000
> >      [exec] ...while parsing LocalVariableTable attribute at offset
> > 00000125
> >      [exec] ...while parsing attributes[1]
> >      [exec] ...while parsing Code attribute at offset 00000102
> >      [exec] ...while parsing attributes[0]
> >      [exec] ...while parsing methods[0]
> >      [exec] ...while parsing com/android/hello/R$attr.class
> >      [exec] ...while processing com/android/hello/R$attr.class
> >      [exec]
> >      [exec] trouble processing:
> >      [exec] invalid constant pool index 0000
> >      [exec] ...while parsing LocalVariableTable attribute at offset
> > 0000015f
> >      [exec] ...while parsing attributes[1]
> >      [exec] ...while parsing Code attribute at offset 0000013c
> >      [exec] ...while parsing attributes[0]
> >      [exec] ...while parsing methods[0]
> >      [exec] ...while parsing com/android/hello/R$string.class
> >      [exec] ...while processing com/android/hello/R$string.class
> >      [exec]
> >      [exec] trouble processing:
> >      [exec] invalid constant pool index 0000
> >      [exec] ...while parsing LocalVariableTable attribute at offset
> > 0000023f
> >      [exec] ...while parsing attributes[1]
> >      [exec] ...while parsing Code attribute at offset 0000021c
> >      [exec] ...while parsing attributes[0]
> >      [exec] ...while parsing methods[0]
> >      [exec] ...while parsing com/android/hello/HelloAndroid.class
> >      [exec] ...while processing com/android/hello/HelloAndroid.class
> >      [exec]
> >      [exec] trouble processing:
> >      [exec] invalid constant pool index 0000
> >      [exec] ...while
>
> ...
>
> read more ยป
--~--~---------~--~----~------------~-------~--~----~
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]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to