Thank dude! it's the first time i write in the forum. i ve just finished my carrer and i hope that the forum was one of my frequently page to visit. It's wonderful think that people spends a bit of his time helping other people.
i' ll go on looking for a solution maybe it could be the Path and the diferent configuration files that exist in ubuntu to configure the PATH. I 'll look it Thank again --- El lun, 22/2/10, Bob Kerns <r...@acm.org> escribió: De: Bob Kerns <r...@acm.org> Asunto: [android-developers] Re: Editor Layout problem Para: "Android Developers" <android-developers@googlegroups.com> Fecha: lunes, 22 de febrero, 2010 10:17 I can't tell you exactly what happened, but maybe I can give some context that will help. NoClassDefFoundError doesn't mean the class wasn't there, it means it got an error loading the class. Typically, this means that some static initializer died. It always fails to tell the only useful information -- the original exception! You can run Eclipse under the debugger, and find out where this is happening, but that will be a real pain. A clue here is the class that failed: sun.awt.X11.XToolkit Something to do with your display, or Java's ability to talk to that display, or find the native library it uses to interface to X, or some such. I think it was likely an error trying to load the native library. You could disassemble XToolkit and see what native library it loads, and do a 'find'. Look at your PATH variable -- does it perhaps have a different version of Java on it than you're trying to run? You can try googling your error and see what you come up with. Given that it came second, the NoClassDefFoundError might be a result of the NullPointerException -- but I can't think of a way that would happen that you'd actually see the first if it was in a position to cause the second. I could always be surprised, however. Is your DISPLAY variable set correctly? Normally, Eclipse uses SWT, not AWT, so I wonder what's happening that is trying to initialize sun.awt.X11.XToolkit at this point in time. Maybe someone who actually uses Eclipse on Ubuntu could chime in. All my ubuntus are virtual. On Feb 21, 3:31 am, nep0x <nespap...@yahoo.es> wrote: > hello > > I m developing an android app, i ve had a problem with the layout > editor. I m using eclipse 3.5.1 for RCP/plugin developers, the android > developers kit version 0.9.5 and jdk 1.6 in ubuntu 8.04 hardy heron. > > I ve been working good until one day i had to modificate my UI. when i > tried to see my main.xml layout i found the following error: > > Null Pointer Exception then NoClassDefFoundError: Could not initialize > class sun.awt.X11.XToolkit > > I was looking for a solution but i didn't find so i reintalled all. > Eclipse, ADT, SDK and Java. First it (layout) looked to work again but > in two days it broke again. > > I m so frustrated cause i dont know what i do to get this error. First > it works then don t .why? > > I hope anybody can help me > > thanks > > Nestor -- 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 -- 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