[android-developers] Re: Eclipse Error while adding ddms

2008-12-28 Thread Anonymous Anonymous
hi Jeff,

i was having open jdk and later i have gone for sun-java6-jdk and got it
solved.

Thanks
Binish

On Sun, Dec 28, 2008 at 6:06 AM, jeff ssapu...@gmail.com wrote:


 Hi,
 what is the problem with the JDK if you dont mind sharing..I have the
 same problem recently...

 Thanks,

 On Dec 7, 1:08 am, Anonymous Anonymous
 firewallbr...@googlemail.com wrote:
  Hi Xav, Ralf,
 
  Now am able to launch DDMS  and debug built in apps, pblm was with my
 JDK.
 
  Thanks a lot for your help
  Steve
 
  On Sun, Dec 7, 2008 at 8:13 AM, Anonymous Anonymous 
 
  firewallbr...@googlemail.com wrote:
   Hi Xav,
   in trouble :(
   *I am trying to debug existing application.
 
   Am usign the full source code downloaded from source.android.com...(not
   this onehttp://code.google.com/android/download_list.html-Linux one).
   I assume ADT plugin is used in such case , where we debug as Android
   Application??
   Here i try to debug the full source tree running DDMS on another
 terminal
   (standalone!)
   So i assumed adding the com.**.ddms in workspace will solve the
 problem
   !!
 
   * If you can run Eclipse with the ADT plugin, you don't need to run the
   standalone DDMS. Go to the DDMS perspective in Eclipse, and select
   your running application in the Device view, and then select to port
   8700*
 
   On the other side i have tried this as well, but it needs to set
 SDKtools
   location and all 
 
   So am kinda lost now - (debugging IM application)..
 
   My workspace looks like this now FYR (
 http://i35.tinypic.com/5d1ehi.png)
 
   or me again wrong?
 
   Thanks and sorry for the trouble
   Steve
 
   On Sat, Dec 6, 2008 at 11:01 PM, Xavier Ducrohet x...@google.com
 wrote:
 
I want to debug an android application built with the SDK say (IM)..
I think my understanding also wrong (sorry for being noobish),let me
summarize the steps needed for debugging...
 
1.Latest source code compiled succesfully with a working emulator.
2.ddms plugin added in eclipse.
3.lauch DDMS and emulator in separate terminals !! ?
4.connect using 8700 port
(*considering my break point is in ImApp.java !!!)
 
   There is a big confusion on what step 2 is.
   From the beginning we helped you open and compile the _source_code_
   for the adt/ddms plug-ins.
   What you needed was to _install_ the plugin (which is called ADT but
   includes DDMS as well). See instruction here:
  http://code.google.com/android/intro/installing.html#installingplugin
 
   If you can run Eclipse with the ADT plugin, you don't need to run the
   standalone DDMS. Go to the DDMS perspective in Eclipse, and select
   your running application in the Device view, and then select to port
   8700.
 
   Now, I do not know why you can't seem to run the standalone DDMS. It
   looks like your linux installation is weird.
 
   Xav
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Eclipse Error while adding ddms

2008-12-27 Thread jeff

Hi,
what is the problem with the JDK if you dont mind sharing..I have the
same problem recently...

Thanks,

On Dec 7, 1:08 am, Anonymous Anonymous
firewallbr...@googlemail.com wrote:
 Hi Xav, Ralf,

 Now am able to launch DDMS  and debug built in apps, pblm was with my JDK.

 Thanks a lot for your help
 Steve

 On Sun, Dec 7, 2008 at 8:13 AM, Anonymous Anonymous 

 firewallbr...@googlemail.com wrote:
  Hi Xav,
  in trouble :(
  *I am trying to debug existing application.

  Am usign the full source code downloaded from source.android.com ...(not
  this onehttp://code.google.com/android/download_list.html-Linux one).
  I assume ADT plugin is used in such case , where we debug as Android
  Application??
  Here i try to debug the full source tree running DDMS on another terminal
  (standalone!)
  So i assumed adding the com.**.ddms in workspace will solve the problem
  !!

  * If you can run Eclipse with the ADT plugin, you don't need to run the
  standalone DDMS. Go to the DDMS perspective in Eclipse, and select
  your running application in the Device view, and then select to port
  8700*

  On the other side i have tried this as well, but it needs to set SDKtools
  location and all 

  So am kinda lost now - (debugging IM application)..

  My workspace looks like this now FYR (http://i35.tinypic.com/5d1ehi.png)

  or me again wrong?

  Thanks and sorry for the trouble
  Steve

  On Sat, Dec 6, 2008 at 11:01 PM, Xavier Ducrohet x...@google.com wrote:

   I want to debug an android application built with the SDK say (IM)..
   I think my understanding also wrong (sorry for being noobish),let me
   summarize the steps needed for debugging...

   1.Latest source code compiled succesfully with a working emulator.
   2.ddms plugin added in eclipse.
   3.lauch DDMS and emulator in separate terminals !! ?
   4.connect using 8700 port
   (*considering my break point is in ImApp.java !!!)

  There is a big confusion on what step 2 is.
  From the beginning we helped you open and compile the _source_code_
  for the adt/ddms plug-ins.
  What you needed was to _install_ the plugin (which is called ADT but
  includes DDMS as well). See instruction here:
 http://code.google.com/android/intro/installing.html#installingplugin

  If you can run Eclipse with the ADT plugin, you don't need to run the
  standalone DDMS. Go to the DDMS perspective in Eclipse, and select
  your running application in the Device view, and then select to port
  8700.

  Now, I do not know why you can't seem to run the standalone DDMS. It
  looks like your linux installation is weird.

  Xav
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Eclipse Error while adding ddms

2008-12-07 Thread Ralf

The bottom line for all this if that you never really needed to build
the Eclipse plugin or DDMS yourself. You could just have used the one
from the Android 1.0 SDK r1 or r2 (in the tools directory). As it is
right now, the SDK tools work the same as the ones from git.

As Xav stated, the only reason one would want to rebuild the plugin or
the standalone DDMS is to make changes to them.

R/

On Sat, Dec 6, 2008 at 11:48 PM, Xavier Ducrohet [EMAIL PROTECTED] wrote:

 Glad to hear you solved your JDK issue.

 The only reason you would want to add the ddms plugin source code to
 Eclipse is if you want to work on the plugin itself.

 To develop/debug application, using the standalone DDMS or
 _installing_ the plugin inside eclipse is enough.

 Xav

 On Sat, Dec 6, 2008 at 11:08 PM, Anonymous Anonymous
 [EMAIL PROTECTED] wrote:
 Hi Xav, Ralf,

 Now am able to launch DDMS  and debug built in apps, pblm was with my JDK.

 Thanks a lot for your help
 Steve

 On Sun, Dec 7, 2008 at 8:13 AM, Anonymous Anonymous
 [EMAIL PROTECTED] wrote:

 Hi Xav,
 in trouble :(
 *I am trying to debug existing application.

 Am usign the full source code downloaded from source.android.com ...(not
 this one http://code.google.com/android/download_list.html -Linux one).
 I assume ADT plugin is used in such case , where we debug as Android
 Application??
 Here i try to debug the full source tree running DDMS on another
 terminal (standalone!)
 So i assumed adding the com.**.ddms in workspace will solve the
 problem !!

 If you can run Eclipse with the ADT plugin, you don't need to run the
 standalone DDMS. Go to the DDMS perspective in Eclipse, and select
 your running application in the Device view, and then select to port
 8700

 On the other side i have tried this as well, but it needs to set SDKtools
 location and all 

 So am kinda lost now - (debugging IM application)..

 My workspace looks like this now FYR (http://i35.tinypic.com/5d1ehi.png)

 or me again wrong?

 Thanks and sorry for the trouble
 Steve

 On Sat, Dec 6, 2008 at 11:01 PM, Xavier Ducrohet [EMAIL PROTECTED] wrote:

  I want to debug an android application built with the SDK say (IM)..
  I think my understanding also wrong (sorry for being noobish),let me
  summarize the steps needed for debugging...
 
  1.Latest source code compiled succesfully with a working emulator.
  2.ddms plugin added in eclipse.
  3.lauch DDMS and emulator in separate terminals !! ?
  4.connect using 8700 port
  (*considering my break point is in ImApp.java !!!)

 There is a big confusion on what step 2 is.
 From the beginning we helped you open and compile the _source_code_
 for the adt/ddms plug-ins.
 What you needed was to _install_ the plugin (which is called ADT but
 includes DDMS as well). See instruction here:
 http://code.google.com/android/intro/installing.html#installingplugin

 If you can run Eclipse with the ADT plugin, you don't need to run the
 standalone DDMS. Go to the DDMS perspective in Eclipse, and select
 your running application in the Device view, and then select to port
 8700.

 Now, I do not know why you can't seem to run the standalone DDMS. It
 looks like your linux installation is weird.

 Xav





 


 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
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
-~--~~~~--~~--~--~---



[android-developers] Re: Eclipse Error while adding ddms

2008-12-07 Thread Anonymous Anonymous
Yes,Ralf, actually i got confused with documentation at 2 different places.

Thanks
Steve

On Sun, Dec 7, 2008 at 11:39 PM, Ralf [EMAIL PROTECTED] wrote:


 The bottom line for all this if that you never really needed to build
 the Eclipse plugin or DDMS yourself. You could just have used the one
 from the Android 1.0 SDK r1 or r2 (in the tools directory). As it is
 right now, the SDK tools work the same as the ones from git.

 As Xav stated, the only reason one would want to rebuild the plugin or
 the standalone DDMS is to make changes to them.

 R/

 On Sat, Dec 6, 2008 at 11:48 PM, Xavier Ducrohet [EMAIL PROTECTED] wrote:
 
  Glad to hear you solved your JDK issue.
 
  The only reason you would want to add the ddms plugin source code to
  Eclipse is if you want to work on the plugin itself.
 
  To develop/debug application, using the standalone DDMS or
  _installing_ the plugin inside eclipse is enough.
 
  Xav
 
  On Sat, Dec 6, 2008 at 11:08 PM, Anonymous Anonymous
  [EMAIL PROTECTED] wrote:
  Hi Xav, Ralf,
 
  Now am able to launch DDMS  and debug built in apps, pblm was with my
 JDK.
 
  Thanks a lot for your help
  Steve
 
  On Sun, Dec 7, 2008 at 8:13 AM, Anonymous Anonymous
  [EMAIL PROTECTED] wrote:
 
  Hi Xav,
  in trouble :(
  *I am trying to debug existing application.
 
  Am usign the full source code downloaded from source.android.com...(not
  this one http://code.google.com/android/download_list.html -Linux
 one).
  I assume ADT plugin is used in such case , where we debug as Android
  Application??
  Here i try to debug the full source tree running DDMS on another
  terminal (standalone!)
  So i assumed adding the com.**.ddms in workspace will solve the
  problem !!
 
  If you can run Eclipse with the ADT plugin, you don't need to run the
  standalone DDMS. Go to the DDMS perspective in Eclipse, and select
  your running application in the Device view, and then select to port
  8700
 
  On the other side i have tried this as well, but it needs to set
 SDKtools
  location and all 
 
  So am kinda lost now - (debugging IM application)..
 
  My workspace looks like this now FYR (
 http://i35.tinypic.com/5d1ehi.png)
 
  or me again wrong?
 
  Thanks and sorry for the trouble
  Steve
 
  On Sat, Dec 6, 2008 at 11:01 PM, Xavier Ducrohet [EMAIL PROTECTED]
 wrote:
 
   I want to debug an android application built with the SDK say (IM)..
   I think my understanding also wrong (sorry for being noobish),let me
   summarize the steps needed for debugging...
  
   1.Latest source code compiled succesfully with a working emulator.
   2.ddms plugin added in eclipse.
   3.lauch DDMS and emulator in separate terminals !! ?
   4.connect using 8700 port
   (*considering my break point is in ImApp.java !!!)
 
  There is a big confusion on what step 2 is.
  From the beginning we helped you open and compile the _source_code_
  for the adt/ddms plug-ins.
  What you needed was to _install_ the plugin (which is called ADT but
  includes DDMS as well). See instruction here:
  http://code.google.com/android/intro/installing.html#installingplugin
 
  If you can run Eclipse with the ADT plugin, you don't need to run the
  standalone DDMS. Go to the DDMS perspective in Eclipse, and select
  your running application in the Device view, and then select to port
  8700.
 
  Now, I do not know why you can't seem to run the standalone DDMS. It
  looks like your linux installation is weird.
 
  Xav
 
 
 
 
 
  
 
 
  
 

 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
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
-~--~~~~--~~--~--~---



[android-developers] Re: Eclipse Error while adding ddms

2008-12-06 Thread Anonymous Anonymous
i have downlaoded
swt(swt-3.2.2-gtk-linux-x86.ziphttp://archive.eclipse.org/eclipse/downloads/drops/R-3.2.2-200702121330/download.php?dropFile=swt-3.2.2-gtk-linux-x86.zip
) again and replaced  libs and jars in lib and framework folder and it seems
the error reamins same !!!

---
13:55 E/ddms: shutting down due to uncaught exception
13:55 E/ddms: java.awt.AWTError: Assistive Technology not found:
org.GNOME.Accessibility.JavaBridge
at java.awt.Toolkit.loadAssistiveTechnologies(Toolkit.java:788)
at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:874)
at
sun.swing.SwingUtilities2$AATextInfo.getAATextInfo(SwingUtilities2.java:131)
at
javax.swing.plaf.metal.MetalLookAndFeel.initComponentDefaults(MetalLookAndFeel.java:1564)
at
javax.swing.plaf.basic.BasicLookAndFeel.getDefaults(BasicLookAndFeel.java:147)
at
javax.swing.plaf.metal.MetalLookAndFeel.getDefaults(MetalLookAndFeel.java:1599)
at javax.swing.UIManager.setLookAndFeel(UIManager.java:545)
at javax.swing.UIManager.setLookAndFeel(UIManager.java:585)
at javax.swing.UIManager.initializeDefaultLAF(UIManager.java:1334)
at javax.swing.UIManager.initialize(UIManager.java:1421)
at javax.swing.UIManager.maybeInitialize(UIManager.java:1409)
at javax.swing.UIManager.getDefaults(UIManager.java:659)
at javax.swing.UIManager.getColor(UIManager.java:701)
at org.jfree.chart.JFreeChart.clinit(JFreeChart.java:252)
at org.jfree.chart.ChartFactory.createBarChart(ChartFactory.java:826)
at com.android.ddmuilib.HeapPanel.createChart(HeapPanel.java:599)
at com.android.ddmuilib.HeapPanel.createControl(HeapPanel.java:371)
at com.android.ddmuilib.Panel.createPanel(Panel.java:29)
at com.android.ddms.UIThread.createRightPanel(UIThread.java:1227)
at com.android.ddms.UIThread.createTopPanel(UIThread.java:982)
at com.android.ddms.UIThread.createWidgets(UIThread.java:831)
at com.android.ddms.UIThread.runUI(UIThread.java:377)
at com.android.ddms.Main.main(Main.java:97)


thanks
steve

On Sat, Dec 6, 2008 at 11:43 AM, Anonymous Anonymous 
[EMAIL PROTECTED] wrote:

 I am trying to debug IM application.Just to understand the current code
 flow..

 Thanks
 Steve


 On Sat, Dec 6, 2008 at 11:28 AM, Xavier Ducrohet [EMAIL PROTECTED] wrote:


 What are you trying to debug? an android application built with the
 SDK or the ddms plugin?

 Xav

 On Fri, Dec 5, 2008 at 7:31 PM, Anonymous Anonymous
 [EMAIL PROTECTED] wrote:
  Hi Xav,
 
  Sorry for the confusion let me explain once again.
 
  1.using repo get full source
  2.Add project in Eclipse  say Myandroid
  2.Now add the ddms plugin as we discussed earlier.
  (i have copied 3 jar files to /libs folder to resolve errors in eclipse)
 
  Now am thinking to attach ( mission debug) as per the document
  (http://source.android.com/using-eclipse)
  1. Lauch ddms (/out/host/linux-x86/bin) is this not correct?
  *throws exception
 
  *or is there any other way i can debug !!
 
  thanks
  steve
 
 
 
 
 
  On Sat, Dec 6, 2008 at 8:53 AM, Xavier Ducrohet [EMAIL PROTECTED] wrote:
 
  I'm a bit confused here. After making the ddms _plugin_ compile in
  Eclipse, you are launching the standalone version from the sdk...
 
 
  On Fri, Dec 5, 2008 at 7:10 PM, Anonymous Anonymous
  [EMAIL PROTECTED] wrote:
   Hi guys,
  
   Now no erros :)
  
   btw now ddms fails to load... :(
  
   i have created com.android.ide.
  
   eclipse.ddms/libs/ folder and copied the required *.jar files from
   /out/host/linux-x86/framework/ ..
 
  You probably shouldn't have copied them. btw we fixed the scripts so
  running them will do the proper thing (ie make symlinks so that if you
  modify them, Eclipse will build the plugin with the newer version).
 
   2. now goto
   /out/host/linux-x86/bin
   and ran ./ddms
  
   gettign the below exception ! am i missing something again ...
  
  
  
 -
   (ddms:12939): Gdk-WARNING **: gdk_window_set_icon_list: icons too
 large
   45:45 E/ddms: shutting down due to uncaught exception
   45:45 E/ddms: java.awt.AWTError: Assistive Technology not found:
   org.GNOME.Accessibility.JavaBridge
   at java.awt.Toolkit.loadAssistiveTechnologies(Toolkit.java:788)
 
  This is quite surprising.
  In prebuilt/Linux/swt there is the Linux version of SWT. we
  selectively take some of those files during the build and put them in
  out/host/Linux/lib (for the native libs) and out/host/Linux/framework
  for the jar files.
  You may want to see what native library/jar you are missing by
  experiment. For information SWT comes from here:
 
 
 

[android-developers] Re: Eclipse Error while adding ddms

2008-12-06 Thread Anonymous Anonymous
*I'm a bit confused here. After making the ddms _plugin_ compile in
Eclipse, you are launching the standalone version from the sdk...*

You mean to say no need to start DDMS separately ! ( if not cannot connect
to VM: connection refused error !)

*You probably shouldn't have copied them. btw we fixed the scripts so
running them will do the proper thing (ie make symlinks so that if you
modify them, Eclipse will build the plugin with the newer version).*

i have no errors in eclipse now, either with jar files or with compiler
compliance.

*You may want to see what native library/jar you are missing by
experiment. For information SWT comes from here:
http://archive.eclipse.org/eclipse/downloads/drops/R-3.2.2-200702121330/index.php#swt
*

i have tried SWT from there(replace- error remains same) .. may i know what
else lib/jar need to be tried?

*What are you trying to debug? an android application built with the
SDK or the ddms plugin?*

I want to debug an android application built with the SDK say (IM)..
I think my understanding also wrong (sorry for being noobish),let me
summarize the steps needed for debugging...

1.Latest source code compiled succesfully with a working emulator.
2.ddms plugin added in eclipse.
3.lauch DDMS and emulator in separate terminals !! ?
4.connect using 8700 port
(*considering my break point is in ImApp.java !!!)

Please help to correct the steps if am going in wrong direction.

Thanks in Advance
Steve

On Sat, Dec 6, 2008 at 3:48 PM, Anonymous Anonymous 
[EMAIL PROTECTED] wrote:

 i have downlaoded 
 swt(swt-3.2.2-gtk-linux-x86.ziphttp://archive.eclipse.org/eclipse/downloads/drops/R-3.2.2-200702121330/download.php?dropFile=swt-3.2.2-gtk-linux-x86.zip
 ) again and replaced  libs and jars in lib and framework folder and it seems
 the error reamins same !!!


 ---
 13:55 E/ddms: shutting down due to uncaught exception
 13:55 E/ddms: java.awt.AWTError: Assistive Technology not found:
 org.GNOME.Accessibility.JavaBridge
 at java.awt.Toolkit.loadAssistiveTechnologies(Toolkit.java:788)
 at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:874)
 at
 sun.swing.SwingUtilities2$AATextInfo.getAATextInfo(SwingUtilities2.java:131)
 at
 javax.swing.plaf.metal.MetalLookAndFeel.initComponentDefaults(MetalLookAndFeel.java:1564)
 at
 javax.swing.plaf.basic.BasicLookAndFeel.getDefaults(BasicLookAndFeel.java:147)
 at
 javax.swing.plaf.metal.MetalLookAndFeel.getDefaults(MetalLookAndFeel.java:1599)
 at javax.swing.UIManager.setLookAndFeel(UIManager.java:545)
 at javax.swing.UIManager.setLookAndFeel(UIManager.java:585)
 at javax.swing.UIManager.initializeDefaultLAF(UIManager.java:1334)
 at javax.swing.UIManager.initialize(UIManager.java:1421)
 at javax.swing.UIManager.maybeInitialize(UIManager.java:1409)
 at javax.swing.UIManager.getDefaults(UIManager.java:659)
 at javax.swing.UIManager.getColor(UIManager.java:701)
 at org.jfree.chart.JFreeChart.clinit(JFreeChart.java:252)
 at org.jfree.chart.ChartFactory.createBarChart(ChartFactory.java:826)
 at com.android.ddmuilib.HeapPanel.createChart(HeapPanel.java:599)
 at com.android.ddmuilib.HeapPanel.createControl(HeapPanel.java:371)
 at com.android.ddmuilib.Panel.createPanel(Panel.java:29)
 at com.android.ddms.UIThread.createRightPanel(UIThread.java:1227)
 at com.android.ddms.UIThread.createTopPanel(UIThread.java:982)
 at com.android.ddms.UIThread.createWidgets(UIThread.java:831)
 at com.android.ddms.UIThread.runUI(UIThread.java:377)
 at com.android.ddms.Main.main(Main.java:97)

 

 thanks
 steve


 On Sat, Dec 6, 2008 at 11:43 AM, Anonymous Anonymous 
 [EMAIL PROTECTED] wrote:

 I am trying to debug IM application.Just to understand the current code
 flow..

 Thanks
 Steve


 On Sat, Dec 6, 2008 at 11:28 AM, Xavier Ducrohet [EMAIL PROTECTED] wrote:


 What are you trying to debug? an android application built with the
 SDK or the ddms plugin?

 Xav

 On Fri, Dec 5, 2008 at 7:31 PM, Anonymous Anonymous
 [EMAIL PROTECTED] wrote:
  Hi Xav,
 
  Sorry for the confusion let me explain once again.
 
  1.using repo get full source
  2.Add project in Eclipse  say Myandroid
  2.Now add the ddms plugin as we discussed earlier.
  (i have copied 3 jar files to /libs folder to resolve errors in
 eclipse)
 
  Now am thinking to attach ( mission debug) as per the document
  (http://source.android.com/using-eclipse)
  1. Lauch ddms (/out/host/linux-x86/bin) is this not correct?
  *throws exception
 
  *or is there any other way i can debug !!
 
  thanks
  steve
 
 
 
 
 
  On Sat, Dec 6, 2008 at 8:53 AM, Xavier Ducrohet [EMAIL PROTECTED]
 wrote:
 
  I'm a bit confused here. After making the ddms _plugin_ compile 

[android-developers] Re: Eclipse Error while adding ddms

2008-12-06 Thread Xavier Ducrohet

 I want to debug an android application built with the SDK say (IM)..
 I think my understanding also wrong (sorry for being noobish),let me
 summarize the steps needed for debugging...

 1.Latest source code compiled succesfully with a working emulator.
 2.ddms plugin added in eclipse.
 3.lauch DDMS and emulator in separate terminals !! ?
 4.connect using 8700 port
 (*considering my break point is in ImApp.java !!!)

There is a big confusion on what step 2 is.
From the beginning we helped you open and compile the _source_code_
for the adt/ddms plug-ins.
What you needed was to _install_ the plugin (which is called ADT but
includes DDMS as well). See instruction here:
http://code.google.com/android/intro/installing.html#installingplugin

If you can run Eclipse with the ADT plugin, you don't need to run the
standalone DDMS. Go to the DDMS perspective in Eclipse, and select
your running application in the Device view, and then select to port
8700.

Now, I do not know why you can't seem to run the standalone DDMS. It
looks like your linux installation is weird.

Xav

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
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
-~--~~~~--~~--~--~---



[android-developers] Re: Eclipse Error while adding ddms

2008-12-06 Thread Anonymous Anonymous
Hi Xav,
in trouble :(
*I am trying to debug existing application.

Am usign the full source code downloaded from source.android.com ...(not
this one http://code.google.com/android/download_list.html -Linux one).
I assume ADT plugin is used in such case , where we debug as Android
Application??
Here i try to debug the full source tree running DDMS on another terminal
(standalone!)
So i assumed adding the com.**.ddms in workspace will solve the problem
!!

* If you can run Eclipse with the ADT plugin, you don't need to run the
standalone DDMS. Go to the DDMS perspective in Eclipse, and select
your running application in the Device view, and then select to port
8700*

On the other side i have tried this as well, but it needs to set SDKtools
location and all 

So am kinda lost now - (debugging IM application)..

My workspace looks like this now FYR (http://i35.tinypic.com/5d1ehi.png)

or me again wrong?

Thanks and sorry for the trouble
Steve

On Sat, Dec 6, 2008 at 11:01 PM, Xavier Ducrohet [EMAIL PROTECTED] wrote:


  I want to debug an android application built with the SDK say (IM)..
  I think my understanding also wrong (sorry for being noobish),let me
  summarize the steps needed for debugging...
 
  1.Latest source code compiled succesfully with a working emulator.
  2.ddms plugin added in eclipse.
  3.lauch DDMS and emulator in separate terminals !! ?
  4.connect using 8700 port
  (*considering my break point is in ImApp.java !!!)

 There is a big confusion on what step 2 is.
 From the beginning we helped you open and compile the _source_code_
 for the adt/ddms plug-ins.
 What you needed was to _install_ the plugin (which is called ADT but
 includes DDMS as well). See instruction here:
 http://code.google.com/android/intro/installing.html#installingplugin

 If you can run Eclipse with the ADT plugin, you don't need to run the
 standalone DDMS. Go to the DDMS perspective in Eclipse, and select
 your running application in the Device view, and then select to port
 8700.

 Now, I do not know why you can't seem to run the standalone DDMS. It
 looks like your linux installation is weird.

 Xav

 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
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
-~--~~~~--~~--~--~---



[android-developers] Re: Eclipse Error while adding ddms

2008-12-06 Thread Anonymous Anonymous
Hi Xav, Ralf,

Now am able to launch DDMS  and debug built in apps, pblm was with my JDK.

Thanks a lot for your help
Steve

On Sun, Dec 7, 2008 at 8:13 AM, Anonymous Anonymous 
[EMAIL PROTECTED] wrote:

 Hi Xav,
 in trouble :(
 *I am trying to debug existing application.

 Am usign the full source code downloaded from source.android.com ...(not
 this one http://code.google.com/android/download_list.html -Linux one).
 I assume ADT plugin is used in such case , where we debug as Android
 Application??
 Here i try to debug the full source tree running DDMS on another terminal
 (standalone!)
 So i assumed adding the com.**.ddms in workspace will solve the problem
 !!

 * If you can run Eclipse with the ADT plugin, you don't need to run the
 standalone DDMS. Go to the DDMS perspective in Eclipse, and select
 your running application in the Device view, and then select to port
 8700*

 On the other side i have tried this as well, but it needs to set SDKtools
 location and all 

 So am kinda lost now - (debugging IM application)..

 My workspace looks like this now FYR (http://i35.tinypic.com/5d1ehi.png)

 or me again wrong?

 Thanks and sorry for the trouble
 Steve


 On Sat, Dec 6, 2008 at 11:01 PM, Xavier Ducrohet [EMAIL PROTECTED] wrote:


  I want to debug an android application built with the SDK say (IM)..
  I think my understanding also wrong (sorry for being noobish),let me
  summarize the steps needed for debugging...
 
  1.Latest source code compiled succesfully with a working emulator.
  2.ddms plugin added in eclipse.
  3.lauch DDMS and emulator in separate terminals !! ?
  4.connect using 8700 port
  (*considering my break point is in ImApp.java !!!)

 There is a big confusion on what step 2 is.
 From the beginning we helped you open and compile the _source_code_
 for the adt/ddms plug-ins.
 What you needed was to _install_ the plugin (which is called ADT but
 includes DDMS as well). See instruction here:
 http://code.google.com/android/intro/installing.html#installingplugin

 If you can run Eclipse with the ADT plugin, you don't need to run the
 standalone DDMS. Go to the DDMS perspective in Eclipse, and select
 your running application in the Device view, and then select to port
 8700.

 Now, I do not know why you can't seem to run the standalone DDMS. It
 looks like your linux installation is weird.

 Xav

 



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
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
-~--~~~~--~~--~--~---



[android-developers] Re: Eclipse Error while adding ddms

2008-12-06 Thread Xavier Ducrohet

Glad to hear you solved your JDK issue.

The only reason you would want to add the ddms plugin source code to
Eclipse is if you want to work on the plugin itself.

To develop/debug application, using the standalone DDMS or
_installing_ the plugin inside eclipse is enough.

Xav

On Sat, Dec 6, 2008 at 11:08 PM, Anonymous Anonymous
[EMAIL PROTECTED] wrote:
 Hi Xav, Ralf,

 Now am able to launch DDMS  and debug built in apps, pblm was with my JDK.

 Thanks a lot for your help
 Steve

 On Sun, Dec 7, 2008 at 8:13 AM, Anonymous Anonymous
 [EMAIL PROTECTED] wrote:

 Hi Xav,
 in trouble :(
 *I am trying to debug existing application.

 Am usign the full source code downloaded from source.android.com ...(not
 this one http://code.google.com/android/download_list.html -Linux one).
 I assume ADT plugin is used in such case , where we debug as Android
 Application??
 Here i try to debug the full source tree running DDMS on another
 terminal (standalone!)
 So i assumed adding the com.**.ddms in workspace will solve the
 problem !!

 If you can run Eclipse with the ADT plugin, you don't need to run the
 standalone DDMS. Go to the DDMS perspective in Eclipse, and select
 your running application in the Device view, and then select to port
 8700

 On the other side i have tried this as well, but it needs to set SDKtools
 location and all 

 So am kinda lost now - (debugging IM application)..

 My workspace looks like this now FYR (http://i35.tinypic.com/5d1ehi.png)

 or me again wrong?

 Thanks and sorry for the trouble
 Steve

 On Sat, Dec 6, 2008 at 11:01 PM, Xavier Ducrohet [EMAIL PROTECTED] wrote:

  I want to debug an android application built with the SDK say (IM)..
  I think my understanding also wrong (sorry for being noobish),let me
  summarize the steps needed for debugging...
 
  1.Latest source code compiled succesfully with a working emulator.
  2.ddms plugin added in eclipse.
  3.lauch DDMS and emulator in separate terminals !! ?
  4.connect using 8700 port
  (*considering my break point is in ImApp.java !!!)

 There is a big confusion on what step 2 is.
 From the beginning we helped you open and compile the _source_code_
 for the adt/ddms plug-ins.
 What you needed was to _install_ the plugin (which is called ADT but
 includes DDMS as well). See instruction here:
 http://code.google.com/android/intro/installing.html#installingplugin

 If you can run Eclipse with the ADT plugin, you don't need to run the
 standalone DDMS. Go to the DDMS perspective in Eclipse, and select
 your running application in the Device view, and then select to port
 8700.

 Now, I do not know why you can't seem to run the standalone DDMS. It
 looks like your linux installation is weird.

 Xav





 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
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
-~--~~~~--~~--~--~---



[android-developers] Re: Eclipse Error while adding ddms

2008-12-05 Thread Anonymous Anonymous
Hi Ralf,

Thanks again..

1. Ran create_ddms_symlink.sh
2.In eclipse File - import-plugins and fragments -plugin location
.../development/tools/eclipse/plugins..ide.eclipse.ddms
3.Added plugin succesfully
4.gettign the below error... :(

am i doing something really stupid !! :(

(*in the doc says add 3 project(ddmlib,ddmulib,app) for ddms y is it so ?)


Severity and DescriptionPathResourceLocationCreation Time
Id
Project com.android.ide.eclipse.ddms is missing required library:
'libs/jcommon-1.0.12.jar'com.android.ide.eclipse.ddmsBuild
path122846629620265174
Project com.android.ide.eclipse.ddms is missing required library:
'libs/jfreechart-1.0.9-swt.jar'com.android.ide.eclipse.ddmsBuild
path122846629620365175
Project com.android.ide.eclipse.ddms is missing required library:
'libs/jfreechart-1.0.9.jar'com.android.ide.eclipse.ddmsBuild
path122846629620265173
--

On Fri, Dec 5, 2008 at 12:53 PM, Ralf [EMAIL PROTECTED] wrote:


 Make sure to run
 development/tools/eclipse/script/create_ddms_symlink.sh and then only
 import the ddms-plugin project (from
 dev/tools/eclipse/plugins/com.android.blah.ddms) in Eclipse. You don't
 need the ddmlib and ddmuilib projects in Eclipse for ADT because they
 are symlinked under the plugin/ddmsdirectory.

 R/

 On Thu, Dec 4, 2008 at 11:18 PM, Anonymous Anonymous
 [EMAIL PROTECTED] wrote:
  Hi Xav,
 
  Thank you,
 
  Now am clear with few of the errors(compiler compliance).
  I have synced to latest source, and for ddms i have  added  3
  projects(ddmlib,dddmuilib and app) by new project-new java project-
 browse
  to development/tools/ddms
 
  now remained with Button/clipboard/color/composite/combo  cannot be
  resolved !!
 
  How can i add SWT in the dependencies? and this is a ddmuilib project
  (/development/tools/ddms/lib..)
 
  can you help me to resolve the above?
 
  regards
  steve
  On Thu, Dec 4, 2008 at 11:59 PM, Xavier Ducrohet [EMAIL PROTECTED] wrote:
 
  On Wed, Dec 3, 2008 at 8:46 PM, Anonymous Anonymous
  [EMAIL PROTECTED] wrote:
   Hi ,
  
   That error gone, i separately executed all the scripts...
   Now few more errors are like
  
   assert cannot be resolved   client.java
   ddmlib/src/com/android/ddmlib
 
  Can you make sure you are setup with compiler compliance level 5.0? I
  looks like you're building in 1.4 or lower...
 
   Button cannot be resolved to a type AllocationPanel.java
   ddmuilib/src/com/android/ddmuilib
 
  This would mean you don't have SWT in the dependencies. Is this in the
  ddms plugin project or in the ddmuilib project?
 
   Can only iterate over an array or an instance of java.lang.iterable
   AndroidDebugBrigde.javaddmlib/src/com/android/ddmlib
 
  This is probably a compiler level issue too.
 
  Xav
 
 
 
 
  
 

 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
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
-~--~~~~--~~--~--~---



[android-developers] Re: Eclipse Error while adding ddms

2008-12-05 Thread Ralf

FYI I fixed the create_ddms_plugin script in the git repo, so the
steps 1..3 below should work now.

R/

On Fri, Dec 5, 2008 at 12:47 AM, Anonymous Anonymous
[EMAIL PROTECTED] wrote:
 Hi Ralf,

 Thanks again..

 1. Ran create_ddms_symlink.sh
 2.In eclipse File - import-plugins and fragments -plugin location
 .../development/tools/eclipse/plugins..ide.eclipse.ddms
 3.Added plugin succesfully
 4.gettign the below error... :(

 am i doing something really stupid !! :(

 (*in the doc says add 3 project(ddmlib,ddmulib,app) for ddms y is it so ?)

 
 Severity and DescriptionPathResourceLocationCreation Time
 Id
 Project com.android.ide.eclipse.ddms is missing required library:
 'libs/jcommon-1.0.12.jar'com.android.ide.eclipse.ddmsBuild
 path122846629620265174
 Project com.android.ide.eclipse.ddms is missing required library:
 'libs/jfreechart-1.0.9-swt.jar'com.android.ide.eclipse.ddmsBuild
 path122846629620365175
 Project com.android.ide.eclipse.ddms is missing required library:
 'libs/jfreechart-1.0.9.jar'com.android.ide.eclipse.ddmsBuild
 path122846629620265173
 --

 On Fri, Dec 5, 2008 at 12:53 PM, Ralf [EMAIL PROTECTED] wrote:

 Make sure to run
 development/tools/eclipse/script/create_ddms_symlink.sh and then only
 import the ddms-plugin project (from
 dev/tools/eclipse/plugins/com.android.blah.ddms) in Eclipse. You don't
 need the ddmlib and ddmuilib projects in Eclipse for ADT because they
 are symlinked under the plugin/ddmsdirectory.

 R/

 On Thu, Dec 4, 2008 at 11:18 PM, Anonymous Anonymous
 [EMAIL PROTECTED] wrote:
  Hi Xav,
 
  Thank you,
 
  Now am clear with few of the errors(compiler compliance).
  I have synced to latest source, and for ddms i have  added  3
  projects(ddmlib,dddmuilib and app) by new project-new java project-
  browse
  to development/tools/ddms
 
  now remained with Button/clipboard/color/composite/combo  cannot be
  resolved !!
 
  How can i add SWT in the dependencies? and this is a ddmuilib project
  (/development/tools/ddms/lib..)
 
  can you help me to resolve the above?
 
  regards
  steve
  On Thu, Dec 4, 2008 at 11:59 PM, Xavier Ducrohet [EMAIL PROTECTED] wrote:
 
  On Wed, Dec 3, 2008 at 8:46 PM, Anonymous Anonymous
  [EMAIL PROTECTED] wrote:
   Hi ,
  
   That error gone, i separately executed all the scripts...
   Now few more errors are like
  
   assert cannot be resolved   client.java
   ddmlib/src/com/android/ddmlib
 
  Can you make sure you are setup with compiler compliance level 5.0? I
  looks like you're building in 1.4 or lower...
 
   Button cannot be resolved to a type AllocationPanel.java
   ddmuilib/src/com/android/ddmuilib
 
  This would mean you don't have SWT in the dependencies. Is this in the
  ddms plugin project or in the ddmuilib project?
 
   Can only iterate over an array or an instance of java.lang.iterable
   AndroidDebugBrigde.javaddmlib/src/com/android/ddmlib
 
  This is probably a compiler level issue too.
 
  Xav
 
 
 
 
  
 




 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
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
-~--~~~~--~~--~--~---



[android-developers] Re: Eclipse Error while adding ddms

2008-12-05 Thread Anonymous Anonymous
Hi guys,

Now no erros :)

btw now ddms fails to load... :(

i have created com.android.ide.

 eclipse.ddms/libs/ folder and copied the required *.jar files from
 /out/host/linux-x86/framework/ ..

2. now goto
/out/host/linux-x86/bin
and ran ./ddms

gettign the below exception ! am i missing something again ...

-
(ddms:12939): Gdk-WARNING **: gdk_window_set_icon_list: icons too large
45:45 E/ddms: shutting down due to uncaught exception
45:45 E/ddms: java.awt.AWTError: Assistive Technology not found:
org.GNOME.Accessibility.JavaBridge
at java.awt.Toolkit.loadAssistiveTechnologies(Toolkit.java:788)
at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:874)
at
sun.swing.SwingUtilities2$AATextInfo.getAATextInfo(SwingUtilities2.java:131)
at
javax.swing.plaf.metal.MetalLookAndFeel.initComponentDefaults(MetalLookAndFeel.java:1564)
at
javax.swing.plaf.basic.BasicLookAndFeel.getDefaults(BasicLookAndFeel.java:147)
at
javax.swing.plaf.metal.MetalLookAndFeel.getDefaults(MetalLookAndFeel.java:1599)
at javax.swing.UIManager.setLookAndFeel(UIManager.java:545)
at javax.swing.UIManager.setLookAndFeel(UIManager.java:585)
at javax.swing.UIManager.initializeDefaultLAF(UIManager.java:1334)
at javax.swing.UIManager.initialize(UIManager.java:1421)
at javax.swing.UIManager.maybeInitialize(UIManager.java:1409)
at javax.swing.UIManager.getDefaults(UIManager.java:659)
at javax.swing.UIManager.getColor(UIManager.java:701)
at org.jfree.chart.JFreeChart.clinit(JFreeChart.java:252)
at org.jfree.chart.ChartFactory.createBarChart(ChartFactory.java:826)
at com.android.ddmuilib.HeapPanel.createChart(HeapPanel.java:599)
at com.android.ddmuilib.HeapPanel.createControl(HeapPanel.java:371)
at com.android.ddmuilib.Panel.createPanel(Panel.java:29)
at com.android.ddms.UIThread.createRightPanel(UIThread.java:1227)
at com.android.ddms.UIThread.createTopPanel(UIThread.java:982)
at com.android.ddms.UIThread.createWidgets(UIThread.java:831)
at com.android.ddms.UIThread.runUI(UIThread.java:377)
at com.android.ddms.Main.main(Main.java:97)


thanks
steve



On Fri, Dec 5, 2008 at 11:59 PM, Xavier Ducrohet [EMAIL PROTECTED] wrote:


 Hello,

 First, you do not need to open the ddmlib, ddmuilib, ddms projects
 that are in development/tools/ddms. Those are the libraries and
 standalone ddms application.
 The create_ddms_symlinks mentioned by Ralf will link the libraries to
 the real plugin project.


 It looks like the symlinks creation fails if
 development/tools/eclipse/plugins/com.android.ide.eclipse.ddms/libs/
 does not exists. This is where your missing libraries should be
 located.
 We'll fix the script shortly.

 In the mean time create the libs directory manually and reren
 create_ddms_symlinks.sh.

 thanks
 Xav


 On Fri, Dec 5, 2008 at 12:47 AM, Anonymous Anonymous
 [EMAIL PROTECTED] wrote:
  Hi Ralf,
 
  Thanks again..
 
  1. Ran create_ddms_symlink.sh
  2.In eclipse File - import-plugins and fragments -plugin location
  .../development/tools/eclipse/plugins..ide.eclipse.ddms
  3.Added plugin succesfully
  4.gettign the below error... :(
 
  am i doing something really stupid !! :(
 
  (*in the doc says add 3 project(ddmlib,ddmulib,app) for ddms y is it so
 ?)
 
  
  Severity and DescriptionPathResourceLocationCreation Time
  Id
  Project com.android.ide.eclipse.ddms is missing required library:
  'libs/jcommon-1.0.12.jar'com.android.ide.eclipse.ddmsBuild
  path122846629620265174
  Project com.android.ide.eclipse.ddms is missing required library:
  'libs/jfreechart-1.0.9-swt.jar'com.android.ide.eclipse.ddms
  Build
  path122846629620365175
  Project com.android.ide.eclipse.ddms is missing required library:
  'libs/jfreechart-1.0.9.jar'com.android.ide.eclipse.ddmsBuild
  path122846629620265173
  --
 
  On Fri, Dec 5, 2008 at 12:53 PM, Ralf [EMAIL PROTECTED] wrote:
 
  Make sure to run
  development/tools/eclipse/script/create_ddms_symlink.sh and then only
  import the ddms-plugin project (from
  dev/tools/eclipse/plugins/com.android.blah.ddms) in Eclipse. You don't
  need the ddmlib and ddmuilib projects in Eclipse for ADT because they
  are symlinked under the plugin/ddmsdirectory.
 
  R/
 
  On Thu, Dec 4, 2008 at 11:18 PM, Anonymous Anonymous
  [EMAIL PROTECTED] wrote:
   Hi Xav,
  
   Thank you,
  
   Now am clear with few of the errors(compiler compliance).
   I have synced to latest source, and for ddms i have  added  3
   projects(ddmlib,dddmuilib and app) by new project-new java project-
   browse
   to development/tools/ddms
  
  

[android-developers] Re: Eclipse Error while adding ddms

2008-12-05 Thread Xavier Ducrohet

I'm a bit confused here. After making the ddms _plugin_ compile in
Eclipse, you are launching the standalone version from the sdk...


On Fri, Dec 5, 2008 at 7:10 PM, Anonymous Anonymous
[EMAIL PROTECTED] wrote:
 Hi guys,

 Now no erros :)

 btw now ddms fails to load... :(

 i have created com.android.ide.

 eclipse.ddms/libs/ folder and copied the required *.jar files from
 /out/host/linux-x86/framework/ ..

You probably shouldn't have copied them. btw we fixed the scripts so
running them will do the proper thing (ie make symlinks so that if you
modify them, Eclipse will build the plugin with the newer version).

 2. now goto
 /out/host/linux-x86/bin
 and ran ./ddms

 gettign the below exception ! am i missing something again ...

 -
 (ddms:12939): Gdk-WARNING **: gdk_window_set_icon_list: icons too large
 45:45 E/ddms: shutting down due to uncaught exception
 45:45 E/ddms: java.awt.AWTError: Assistive Technology not found:
 org.GNOME.Accessibility.JavaBridge
 at java.awt.Toolkit.loadAssistiveTechnologies(Toolkit.java:788)

This is quite surprising.
In prebuilt/Linux/swt there is the Linux version of SWT. we
selectively take some of those files during the build and put them in
out/host/Linux/lib (for the native libs) and out/host/Linux/framework
for the jar files.
You may want to see what native library/jar you are missing by
experiment. For information SWT comes from here:
http://archive.eclipse.org/eclipse/downloads/drops/R-3.2.2-200702121330/index.php#swt

Xav

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
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
-~--~~~~--~~--~--~---



[android-developers] Re: Eclipse Error while adding ddms

2008-12-05 Thread Xavier Ducrohet

What are you trying to debug? an android application built with the
SDK or the ddms plugin?

Xav

On Fri, Dec 5, 2008 at 7:31 PM, Anonymous Anonymous
[EMAIL PROTECTED] wrote:
 Hi Xav,

 Sorry for the confusion let me explain once again.

 1.using repo get full source
 2.Add project in Eclipse  say Myandroid
 2.Now add the ddms plugin as we discussed earlier.
 (i have copied 3 jar files to /libs folder to resolve errors in eclipse)

 Now am thinking to attach ( mission debug) as per the document
 (http://source.android.com/using-eclipse)
 1. Lauch ddms (/out/host/linux-x86/bin) is this not correct?
 *throws exception

 *or is there any other way i can debug !!

 thanks
 steve





 On Sat, Dec 6, 2008 at 8:53 AM, Xavier Ducrohet [EMAIL PROTECTED] wrote:

 I'm a bit confused here. After making the ddms _plugin_ compile in
 Eclipse, you are launching the standalone version from the sdk...


 On Fri, Dec 5, 2008 at 7:10 PM, Anonymous Anonymous
 [EMAIL PROTECTED] wrote:
  Hi guys,
 
  Now no erros :)
 
  btw now ddms fails to load... :(
 
  i have created com.android.ide.
 
  eclipse.ddms/libs/ folder and copied the required *.jar files from
  /out/host/linux-x86/framework/ ..

 You probably shouldn't have copied them. btw we fixed the scripts so
 running them will do the proper thing (ie make symlinks so that if you
 modify them, Eclipse will build the plugin with the newer version).

  2. now goto
  /out/host/linux-x86/bin
  and ran ./ddms
 
  gettign the below exception ! am i missing something again ...
 
 
  -
  (ddms:12939): Gdk-WARNING **: gdk_window_set_icon_list: icons too large
  45:45 E/ddms: shutting down due to uncaught exception
  45:45 E/ddms: java.awt.AWTError: Assistive Technology not found:
  org.GNOME.Accessibility.JavaBridge
  at java.awt.Toolkit.loadAssistiveTechnologies(Toolkit.java:788)

 This is quite surprising.
 In prebuilt/Linux/swt there is the Linux version of SWT. we
 selectively take some of those files during the build and put them in
 out/host/Linux/lib (for the native libs) and out/host/Linux/framework
 for the jar files.
 You may want to see what native library/jar you are missing by
 experiment. For information SWT comes from here:

 http://archive.eclipse.org/eclipse/downloads/drops/R-3.2.2-200702121330/index.php#swt

 Xav




 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
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
-~--~~~~--~~--~--~---



[android-developers] Re: Eclipse Error while adding ddms

2008-12-05 Thread Anonymous Anonymous
I am trying to debug IM application.Just to understand the current code
flow..

Thanks
Steve

On Sat, Dec 6, 2008 at 11:28 AM, Xavier Ducrohet [EMAIL PROTECTED] wrote:


 What are you trying to debug? an android application built with the
 SDK or the ddms plugin?

 Xav

 On Fri, Dec 5, 2008 at 7:31 PM, Anonymous Anonymous
 [EMAIL PROTECTED] wrote:
  Hi Xav,
 
  Sorry for the confusion let me explain once again.
 
  1.using repo get full source
  2.Add project in Eclipse  say Myandroid
  2.Now add the ddms plugin as we discussed earlier.
  (i have copied 3 jar files to /libs folder to resolve errors in eclipse)
 
  Now am thinking to attach ( mission debug) as per the document
  (http://source.android.com/using-eclipse)
  1. Lauch ddms (/out/host/linux-x86/bin) is this not correct?
  *throws exception
 
  *or is there any other way i can debug !!
 
  thanks
  steve
 
 
 
 
 
  On Sat, Dec 6, 2008 at 8:53 AM, Xavier Ducrohet [EMAIL PROTECTED] wrote:
 
  I'm a bit confused here. After making the ddms _plugin_ compile in
  Eclipse, you are launching the standalone version from the sdk...
 
 
  On Fri, Dec 5, 2008 at 7:10 PM, Anonymous Anonymous
  [EMAIL PROTECTED] wrote:
   Hi guys,
  
   Now no erros :)
  
   btw now ddms fails to load... :(
  
   i have created com.android.ide.
  
   eclipse.ddms/libs/ folder and copied the required *.jar files from
   /out/host/linux-x86/framework/ ..
 
  You probably shouldn't have copied them. btw we fixed the scripts so
  running them will do the proper thing (ie make symlinks so that if you
  modify them, Eclipse will build the plugin with the newer version).
 
   2. now goto
   /out/host/linux-x86/bin
   and ran ./ddms
  
   gettign the below exception ! am i missing something again ...
  
  
  
 -
   (ddms:12939): Gdk-WARNING **: gdk_window_set_icon_list: icons too
 large
   45:45 E/ddms: shutting down due to uncaught exception
   45:45 E/ddms: java.awt.AWTError: Assistive Technology not found:
   org.GNOME.Accessibility.JavaBridge
   at java.awt.Toolkit.loadAssistiveTechnologies(Toolkit.java:788)
 
  This is quite surprising.
  In prebuilt/Linux/swt there is the Linux version of SWT. we
  selectively take some of those files during the build and put them in
  out/host/Linux/lib (for the native libs) and out/host/Linux/framework
  for the jar files.
  You may want to see what native library/jar you are missing by
  experiment. For information SWT comes from here:
 
 
 http://archive.eclipse.org/eclipse/downloads/drops/R-3.2.2-200702121330/index.php#swt
 
  Xav
 
 
 
 
  
 

 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
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
-~--~~~~--~~--~--~---



[android-developers] Re: Eclipse Error while adding ddms

2008-12-04 Thread Xavier Ducrohet

On Wed, Dec 3, 2008 at 8:46 PM, Anonymous Anonymous
[EMAIL PROTECTED] wrote:
 Hi ,

 That error gone, i separately executed all the scripts...
 Now few more errors are like

 assert cannot be resolved   client.java
 ddmlib/src/com/android/ddmlib

Can you make sure you are setup with compiler compliance level 5.0? I
looks like you're building in 1.4 or lower...

 Button cannot be resolved to a type AllocationPanel.java
 ddmuilib/src/com/android/ddmuilib

This would mean you don't have SWT in the dependencies. Is this in the
ddms plugin project or in the ddmuilib project?

 Can only iterate over an array or an instance of java.lang.iterable
 AndroidDebugBrigde.javaddmlib/src/com/android/ddmlib

This is probably a compiler level issue too.

Xav

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
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
-~--~~~~--~~--~--~---



[android-developers] Re: Eclipse Error while adding ddms

2008-12-04 Thread Anonymous Anonymous
Hi Xav,

Thank you,

Now am clear with few of the errors(compiler compliance).
I have synced to latest source, and for ddms i have  added  3
projects(ddmlib,dddmuilib and app) by new project-new java project- browse
to development/tools/ddms

now remained with Button/clipboard/color/composite/combo  cannot be
resolved !!

How can i add SWT in the dependencies? and this is a ddmuilib project
(/development/tools/ddms/lib..)

can you help me to resolve the above?

regards
steve
On Thu, Dec 4, 2008 at 11:59 PM, Xavier Ducrohet [EMAIL PROTECTED] wrote:


 On Wed, Dec 3, 2008 at 8:46 PM, Anonymous Anonymous
 [EMAIL PROTECTED] wrote:
  Hi ,
 
  That error gone, i separately executed all the scripts...
  Now few more errors are like
 
  assert cannot be resolved   client.java
  ddmlib/src/com/android/ddmlib

 Can you make sure you are setup with compiler compliance level 5.0? I
 looks like you're building in 1.4 or lower...

  Button cannot be resolved to a type AllocationPanel.java
  ddmuilib/src/com/android/ddmuilib

 This would mean you don't have SWT in the dependencies. Is this in the
 ddms plugin project or in the ddmuilib project?

  Can only iterate over an array or an instance of java.lang.iterable
  AndroidDebugBrigde.javaddmlib/src/com/android/ddmlib

 This is probably a compiler level issue too.

 Xav

 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
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
-~--~~~~--~~--~--~---



[android-developers] Re: Eclipse Error while adding ddms

2008-12-04 Thread Ralf

Make sure to run
development/tools/eclipse/script/create_ddms_symlink.sh and then only
import the ddms-plugin project (from
dev/tools/eclipse/plugins/com.android.blah.ddms) in Eclipse. You don't
need the ddmlib and ddmuilib projects in Eclipse for ADT because they
are symlinked under the plugin/ddmsdirectory.

R/

On Thu, Dec 4, 2008 at 11:18 PM, Anonymous Anonymous
[EMAIL PROTECTED] wrote:
 Hi Xav,

 Thank you,

 Now am clear with few of the errors(compiler compliance).
 I have synced to latest source, and for ddms i have  added  3
 projects(ddmlib,dddmuilib and app) by new project-new java project- browse
 to development/tools/ddms

 now remained with Button/clipboard/color/composite/combo  cannot be
 resolved !!

 How can i add SWT in the dependencies? and this is a ddmuilib project
 (/development/tools/ddms/lib..)

 can you help me to resolve the above?

 regards
 steve
 On Thu, Dec 4, 2008 at 11:59 PM, Xavier Ducrohet [EMAIL PROTECTED] wrote:

 On Wed, Dec 3, 2008 at 8:46 PM, Anonymous Anonymous
 [EMAIL PROTECTED] wrote:
  Hi ,
 
  That error gone, i separately executed all the scripts...
  Now few more errors are like
 
  assert cannot be resolved   client.java
  ddmlib/src/com/android/ddmlib

 Can you make sure you are setup with compiler compliance level 5.0? I
 looks like you're building in 1.4 or lower...

  Button cannot be resolved to a type AllocationPanel.java
  ddmuilib/src/com/android/ddmuilib

 This would mean you don't have SWT in the dependencies. Is this in the
 ddms plugin project or in the ddmuilib project?

  Can only iterate over an array or an instance of java.lang.iterable
  AndroidDebugBrigde.javaddmlib/src/com/android/ddmlib

 This is probably a compiler level issue too.

 Xav




 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
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
-~--~~~~--~~--~--~---



[android-developers] Re: Eclipse Error while adding ddms

2008-12-03 Thread Ralf

You need to add the AndroidPrefs and PingService as projects to your
workspace or add their source to your classpath. You can find them in
git under development/tools/.

R/

On Wed, Dec 3, 2008 at 5:51 PM, Anonymous Anonymous
[EMAIL PROTECTED] wrote:
 Hi All,

 When ever i try to add ddms projects(app,ddmlib and ddmuilib) to eclipse am
 getting the many errors, eg :
 project app missing required java project : 'AndroidPrefs'
 project app missing required java project : 'PingService'

 and hence ending with lots errors everywhere, am i need to edit something in
 .classpath file?

 Any help appreciated.

 Thanks
 Steve



 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
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
-~--~~~~--~~--~--~---



[android-developers] Re: Eclipse Error while adding ddms

2008-12-03 Thread Xavier Ducrohet

Actually, you need to go into development/tools/eclipse/scripts and
run ./create_all_symlinks.sh

This will prebuild some libraries (like androidprefs.jar ping.jar, as
well as others), and make them available to the plugin projects.

Adding the projects to your plugin projects will not work as the jar
will be missing when the plugin is packaged.

Unfortunately we just realized that this is broken in the git
repository. We'll be fixing this shortly.

Xav

On Wed, Dec 3, 2008 at 6:14 PM, Ralf [EMAIL PROTECTED] wrote:

 You need to add the AndroidPrefs and PingService as projects to your
 workspace or add their source to your classpath. You can find them in
 git under development/tools/.

 R/

 On Wed, Dec 3, 2008 at 5:51 PM, Anonymous Anonymous
 [EMAIL PROTECTED] wrote:
 Hi All,

 When ever i try to add ddms projects(app,ddmlib and ddmuilib) to eclipse am
 getting the many errors, eg :
 project app missing required java project : 'AndroidPrefs'
 project app missing required java project : 'PingService'

 and hence ending with lots errors everywhere, am i need to edit something in
 .classpath file?

 Any help appreciated.

 Thanks
 Steve



 


 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
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
-~--~~~~--~~--~--~---



[android-developers] Re: Eclipse Error while adding ddms

2008-12-03 Thread Anonymous Anonymous
Thank you Xav,

When i try to execute create_all_symlinks.sh gives Error: Please execute
this from the device/tools/eclipse/script directory which couldn't find :(

*create_ddms_symlinks.sh and couple of others works fine , any thoughts?

regards
steve

On Thu, Dec 4, 2008 at 7:52 AM, Xavier Ducrohet [EMAIL PROTECTED] wrote:


 Actually, you need to go into development/tools/eclipse/scripts and
 run ./create_all_symlinks.sh

 This will prebuild some libraries (like androidprefs.jar ping.jar, as
 well as others), and make them available to the plugin projects.

 Adding the projects to your plugin projects will not work as the jar
 will be missing when the plugin is packaged.

 Unfortunately we just realized that this is broken in the git
 repository. We'll be fixing this shortly.

 Xav

 On Wed, Dec 3, 2008 at 6:14 PM, Ralf [EMAIL PROTECTED] wrote:
 
  You need to add the AndroidPrefs and PingService as projects to your
  workspace or add their source to your classpath. You can find them in
  git under development/tools/.
 
  R/
 
  On Wed, Dec 3, 2008 at 5:51 PM, Anonymous Anonymous
  [EMAIL PROTECTED] wrote:
  Hi All,
 
  When ever i try to add ddms projects(app,ddmlib and ddmuilib) to eclipse
 am
  getting the many errors, eg :
  project app missing required java project : 'AndroidPrefs'
  project app missing required java project : 'PingService'
 
  and hence ending with lots errors everywhere, am i need to edit
 something in
  .classpath file?
 
  Any help appreciated.
 
  Thanks
  Steve
 
 
 
  
 
 
  
 

 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
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
-~--~~~~--~~--~--~---



[android-developers] Re: Eclipse Error while adding ddms

2008-12-03 Thread Anonymous Anonymous
Hi ,

That error gone, i separately executed all the scripts...
Now few more errors are like

assert cannot be resolved   client.java
ddmlib/src/com/android/ddmlib
Button cannot be resolved to a type AllocationPanel.java
ddmuilib/src/com/android/ddmuilib
Can only iterate over an array or an instance of java.lang.iterable
AndroidDebugBrigde.javaddmlib/src/com/android/ddmlib

Anyone faced?

Thanks
Steve


On Thu, Dec 4, 2008 at 9:22 AM, Anonymous Anonymous 
[EMAIL PROTECTED] wrote:

 Thank you Xav,

 When i try to execute create_all_symlinks.sh gives Error: Please execute
 this from the device/tools/eclipse/script directory which couldn't find :(

 *create_ddms_symlinks.sh and couple of others works fine , any thoughts?

 regards
 steve


 On Thu, Dec 4, 2008 at 7:52 AM, Xavier Ducrohet [EMAIL PROTECTED] wrote:


 Actually, you need to go into development/tools/eclipse/scripts and
 run ./create_all_symlinks.sh

 This will prebuild some libraries (like androidprefs.jar ping.jar, as
 well as others), and make them available to the plugin projects.

 Adding the projects to your plugin projects will not work as the jar
 will be missing when the plugin is packaged.

 Unfortunately we just realized that this is broken in the git
 repository. We'll be fixing this shortly.

 Xav

 On Wed, Dec 3, 2008 at 6:14 PM, Ralf [EMAIL PROTECTED] wrote:
 
  You need to add the AndroidPrefs and PingService as projects to your
  workspace or add their source to your classpath. You can find them in
  git under development/tools/.
 
  R/
 
  On Wed, Dec 3, 2008 at 5:51 PM, Anonymous Anonymous
  [EMAIL PROTECTED] wrote:
  Hi All,
 
  When ever i try to add ddms projects(app,ddmlib and ddmuilib) to
 eclipse am
  getting the many errors, eg :
  project app missing required java project : 'AndroidPrefs'
  project app missing required java project : 'PingService'
 
  and hence ending with lots errors everywhere, am i need to edit
 something in
  .classpath file?
 
  Any help appreciated.
 
  Thanks
  Steve
 
 
 
  
 
 
  
 

 



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
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
-~--~~~~--~~--~--~---



[android-developers] Re: Eclipse Error while adding ddms

2008-12-03 Thread Ralf

I uploaded a CL to fix this: http://r.android.com/5099

R/

On Wed, Dec 3, 2008 at 7:52 PM, Anonymous Anonymous
[EMAIL PROTECTED] wrote:
 Thank you Xav,

 When i try to execute create_all_symlinks.sh gives Error: Please execute
 this from the device/tools/eclipse/script directory which couldn't find :(

 *create_ddms_symlinks.sh and couple of others works fine , any thoughts?

 regards
 steve

 On Thu, Dec 4, 2008 at 7:52 AM, Xavier Ducrohet [EMAIL PROTECTED] wrote:

 Actually, you need to go into development/tools/eclipse/scripts and
 run ./create_all_symlinks.sh

 This will prebuild some libraries (like androidprefs.jar ping.jar, as
 well as others), and make them available to the plugin projects.

 Adding the projects to your plugin projects will not work as the jar
 will be missing when the plugin is packaged.

 Unfortunately we just realized that this is broken in the git
 repository. We'll be fixing this shortly.

 Xav

 On Wed, Dec 3, 2008 at 6:14 PM, Ralf [EMAIL PROTECTED] wrote:
 
  You need to add the AndroidPrefs and PingService as projects to your
  workspace or add their source to your classpath. You can find them in
  git under development/tools/.
 
  R/
 
  On Wed, Dec 3, 2008 at 5:51 PM, Anonymous Anonymous
  [EMAIL PROTECTED] wrote:
  Hi All,
 
  When ever i try to add ddms projects(app,ddmlib and ddmuilib) to
  eclipse am
  getting the many errors, eg :
  project app missing required java project : 'AndroidPrefs'
  project app missing required java project : 'PingService'
 
  and hence ending with lots errors everywhere, am i need to edit
  something in
  .classpath file?
 
  Any help appreciated.
 
  Thanks
  Steve
 
 
 
  
 
 
  
 




 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
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
-~--~~~~--~~--~--~---



[android-developers] Re: Eclipse Error while adding ddms

2008-12-03 Thread Anonymous Anonymous
Hi Ralf,

A running ubuntu on virtual machine..

ubuntu 8.04
Eclipse 3.4(ganymede)
Java - sun-java6-jdk


Thanks again
steve


On Thu, Dec 4, 2008 at 10:52 AM, Ralf [EMAIL PROTECTED] wrote:


 Hmm interesting, would you please be able to indicate:
 - Your host platform: linux, mac, windows
 - Your version of Eclispe and java?

 I'll see if I can reproduce it.
 Thanks in advance,
 R/

 On Wed, Dec 3, 2008 at 8:46 PM, Anonymous Anonymous
 [EMAIL PROTECTED] wrote:
  Hi ,
 
  That error gone, i separately executed all the scripts...
  Now few more errors are like
 
  assert cannot be resolved   client.java
  ddmlib/src/com/android/ddmlib
  Button cannot be resolved to a type AllocationPanel.java
  ddmuilib/src/com/android/ddmuilib
  Can only iterate over an array or an instance of java.lang.iterable
  AndroidDebugBrigde.javaddmlib/src/com/android/ddmlib
 
  Anyone faced?
 
  Thanks
  Steve
 
 
  On Thu, Dec 4, 2008 at 9:22 AM, Anonymous Anonymous
  [EMAIL PROTECTED] wrote:
 
  Thank you Xav,
 
  When i try to execute create_all_symlinks.sh gives Error: Please
 execute
  this from the device/tools/eclipse/script directory which couldn't find
 :(
 
  *create_ddms_symlinks.sh and couple of others works fine , any
 thoughts?
 
  regards
  steve
 
  On Thu, Dec 4, 2008 at 7:52 AM, Xavier Ducrohet [EMAIL PROTECTED] wrote:
 
  Actually, you need to go into development/tools/eclipse/scripts and
  run ./create_all_symlinks.sh
 
  This will prebuild some libraries (like androidprefs.jar ping.jar, as
  well as others), and make them available to the plugin projects.
 
  Adding the projects to your plugin projects will not work as the jar
  will be missing when the plugin is packaged.
 
  Unfortunately we just realized that this is broken in the git
  repository. We'll be fixing this shortly.
 
  Xav
 
  On Wed, Dec 3, 2008 at 6:14 PM, Ralf [EMAIL PROTECTED] wrote:
  
   You need to add the AndroidPrefs and PingService as projects to your
   workspace or add their source to your classpath. You can find them in
   git under development/tools/.
  
   R/
  
   On Wed, Dec 3, 2008 at 5:51 PM, Anonymous Anonymous
   [EMAIL PROTECTED] wrote:
   Hi All,
  
   When ever i try to add ddms projects(app,ddmlib and ddmuilib) to
   eclipse am
   getting the many errors, eg :
   project app missing required java project : 'AndroidPrefs'
   project app missing required java project : 'PingService'
  
   and hence ending with lots errors everywhere, am i need to edit
   something in
   .classpath file?
  
   Any help appreciated.
  
   Thanks
   Steve
  
  
  
   
  
  
   
  
 
 
 
 
 
  
 

 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
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
-~--~~~~--~~--~--~---