Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Could not initialize class sun.awt.X11.XToolkit in Eclipse on ubuntu
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
thanat0s  
View profile  
 More options Jun 8 2010, 10:54 pm
From: thanat0s <thanatos...@gmail.com>
Date: Tue, 8 Jun 2010 19:54:31 -0700 (PDT)
Local: Tues, Jun 8 2010 10:54 pm
Subject: Could not initialize class sun.awt.X11.XToolkit in Eclipse on ubuntu
Hi all,

To be clear, i'm a brand new newbies in java programming, i just try
to follow android coding tutorials. and i got already a problem !

I follow this tuto : http://developer.android.com/guide/tutorials/hello-world.html

And everything run fine, but since i try to use the XML layout
problems begins. I can't run the application, i can't event view the
layout\main.xml in eclipse,  i got this error

java.lang.NoClassDefFoundError: Could not initialize class
sun.awt.X11.XToolkit
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:169)
    at java.awt.Toolkit$2.run(Toolkit.java:834)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:826)
    at android.graphics.Paint.updateFontObject(Paint.java:264)
    at android.graphics.Paint.initFont(Paint.java:241)
    at android.graphics.Paint.<init>(Paint.java:213)
    at android.graphics.Paint.<init>(Paint.java:208)
    at android.view.ViewGroup.<init>(ViewGroup.java:276)
    at android.widget.FrameLayout.<init>(FrameLayout.java:75)
    at com.android.layoutlib.bridge.Bridge.computeLayout(Bridge.java:
394)
    at
com.android.ide.eclipse.adt.internal.editors.layout.gle1.GraphicalLayoutEdi tor.computeLayout(Unknown
Source)
    at
com.android.ide.eclipse.adt.internal.editors.layout.gle1.GraphicalLayoutEdi tor.recomputeLayout(Unknown
Source)
    at
com.android.ide.eclipse.adt.internal.editors.layout.gle1.GraphicalLayoutEdi tor.onConfigurationChange(Unknown
Source)
    at
com.android.ide.eclipse.adt.internal.editors.layout.configuration.Configura tionComposite.onDeviceConfigChange(Unknown
Source)
    at
com.android.ide.eclipse.adt.internal.editors.layout.configuration.Configura tionComposite.onDeviceChange(Unknown
Source)
    at
com.android.ide.eclipse.adt.internal.editors.layout.configuration.Configura tionComposite.access
$2(Unknown Source)
    at
com.android.ide.eclipse.adt.internal.editors.layout.configuration.Configura tionComposite
$2.widgetSelected(Unknown Source)
    at
org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:
228)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:
84)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1176)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:
3493)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:
3112)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:
2405)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
    at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221)
    at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
    at
org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:
332)
    at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:
493)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:
149)
    at
org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication .java:
113)
    at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java :
194)
    at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication (EclipseAppLauncher.java:
110)
    at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseA ppLauncher.java:
79)
    at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:
368)
    at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:
179)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp l.java:
25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:
559)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1311)

Hope someone could help me. I use a ubuntu 10.4 workstation and
eclipse galileo, my display variable is : ":0.0"

Bye


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »