Unable to get it to work

Swing Designer allows you to quickly create the frames, panels, dialogs, applets and other UI elements that comprise Java Swing applications.

Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg

Unable to get it to work

Postby ed » Thu Jul 15, 2004 1:41 pm

I've installed Swing-Designer into Eclipse 3.0 and whenever I try to either activate it or instantiate a JFrame, etc., I get an exception.

Here's the log output:

Code: Select all
!ENTRY org.eclipse.core.runtime 4 2 Jul 15, 2004 14:18:29.751
!MESSAGE Attempt to activate a disabled plug-in: "com.swtdesigner".
!SESSION Jul 15, 2004 14:37:43.49 ----------------------------------------------
java.version=1.4.2_04
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments: -os win32 -ws win32 -arch x86
!ENTRY org.eclipse.core.runtime 4 2 Jul 15, 2004 14:37:43.49
!MESSAGE Plug-in "com.swtdesigner" was unable to instantiate class "com.swtdesigner.DesignerPlugin".
!STACK 0
java.lang.NoSuchMethodException: com.swtdesigner.DesignerPlugin.<init>(org.eclipse.core.runtime.IPluginDescriptor)
   at java.lang.Class.getConstructor0(Unknown Source)
   at java.lang.Class.getConstructor(Unknown Source)
   at org.eclipse.core.internal.plugins.PluginDescriptor.internalDoPluginActivation(PluginDescriptor.java:477)
   at org.eclipse.core.internal.plugins.PluginDescriptor.doPluginActivation(PluginDescriptor.java:435)
   at org.eclipse.core.internal.plugins.PluginDescriptor.getPlugin(PluginDescriptor.java:403)
   at org.eclipse.core.internal.compatibility.PluginActivator.start(PluginActivator.java:48)
   at org.eclipse.osgi.framework.internal.core.BundleContext$1.run(BundleContext.java:1185)
   at java.security.AccessController.doPrivileged(Native Method)
   at org.eclipse.osgi.framework.internal.core.BundleContext.startActivator(BundleContext.java:1178)
   at org.eclipse.osgi.framework.internal.core.BundleContext.start(BundleContext.java:1110)
   at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:458)
   at org.eclipse.osgi.framework.internal.core.Bundle.start(Bundle.java:328)
   at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:133)
   at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:125)
   at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:114)
   at org.eclipse.ui.internal.WorkbenchPlugin$1.run(WorkbenchPlugin.java:160)
   at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:84)
   at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:157)
   at org.eclipse.ui.internal.dialogs.WorkbenchWizardElement.createExecutableExtension(WorkbenchWizardElement.java:96)
   at org.eclipse.ui.internal.ide.NewWizardShortcutAction.run(NewWizardShortcutAction.java:67)
   at org.eclipse.jface.action.Action.runWithEvent(Action.java:842)
   at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:509)
   at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:461)
   at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:408)
   at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
   at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:847)
   at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2311)
   at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1992)
   at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1506)
   at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1482)
   at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:246)
   at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:139)
   at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:47)
   at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226)
   at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:85)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at org.eclipse.core.launcher.Main.basicRun(Main.java:279)
   at org.eclipse.core.launcher.Main.run(Main.java:742)
   at org.eclipse.core.launcher.Main.main(Main.java:581)
!ENTRY org.eclipse.core.runtime 4 1 Jul 15, 2004 14:37:43.59
!MESSAGE Plug-in com.swtdesigner was unable to load class com.swtdesigner.wizards.swing.NewJFrameWizard.
!STACK 0
org.osgi.framework.BundleException: Exception in org.eclipse.core.internal.compatibility.PluginActivator.start()
   at org.eclipse.osgi.framework.internal.core.BundleContext.startActivator(BundleContext.java:1206)
   at org.eclipse.osgi.framework.internal.core.BundleContext.start(BundleContext.java:1110)
   at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:458)
   at org.eclipse.osgi.framework.internal.core.Bundle.start(Bundle.java:328)
   at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:133)
   at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:125)
   at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:114)
   at org.eclipse.ui.internal.WorkbenchPlugin$1.run(WorkbenchPlugin.java:160)
   at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:84)
   at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:157)
   at org.eclipse.ui.internal.dialogs.WorkbenchWizardElement.createExecutableExtension(WorkbenchWizardElement.java:96)
   at org.eclipse.ui.internal.ide.NewWizardShortcutAction.run(NewWizardShortcutAction.java:67)
   at org.eclipse.jface.action.Action.runWithEvent(Action.java:842)
   at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:509)
   at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:461)
   at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:408)
   at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
   at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:847)
   at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2311)
   at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1992)
   at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1506)
   at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1482)
   at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:246)
   at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:139)
   at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:47)
   at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226)
   at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:85)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at org.eclipse.core.launcher.Main.basicRun(Main.java:279)
   at org.eclipse.core.launcher.Main.run(Main.java:742)
   at org.eclipse.core.launcher.Main.main(Main.java:581)
Nested exception:
!STACK 1
org.eclipse.core.runtime.CoreException[2]: java.lang.NoSuchMethodException: com.swtdesigner.DesignerPlugin.<init>(org.eclipse.core.runtime.IPluginDescriptor)
   at java.lang.Class.getConstructor0(Unknown Source)
   at java.lang.Class.getConstructor(Unknown Source)
   at org.eclipse.core.internal.plugins.PluginDescriptor.internalDoPluginActivation(PluginDescriptor.java:477)
   at org.eclipse.core.internal.plugins.PluginDescriptor.doPluginActivation(PluginDescriptor.java:435)
   at org.eclipse.core.internal.plugins.PluginDescriptor.getPlugin(PluginDescriptor.java:403)
   at org.eclipse.core.internal.compatibility.PluginActivator.start(PluginActivator.java:48)
   at org.eclipse.osgi.framework.internal.core.BundleContext$1.run(BundleContext.java:1185)
   at java.security.AccessController.doPrivileged(Native Method)
   at org.eclipse.osgi.framework.internal.core.BundleContext.startActivator(BundleContext.java:1178)
   at org.eclipse.osgi.framework.internal.core.BundleContext.start(BundleContext.java:1110)
   at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:458)
   at org.eclipse.osgi.framework.internal.core.Bundle.start(Bundle.java:328)
   at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:133)
   at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:125)
   at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:114)
   at org.eclipse.ui.internal.WorkbenchPlugin$1.run(WorkbenchPlugin.java:160)
   at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:84)
   at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:157)
   at org.eclipse.ui.internal.dialogs.WorkbenchWizardElement.createExecutableExtension(WorkbenchWizardElement.java:96)
   at org.eclipse.ui.internal.ide.NewWizardShortcutAction.run(NewWizardShortcutAction.java:67)
   at org.eclipse.jface.action.Action.runWithEvent(Action.java:842)
   at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:509)
   at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:461)
   at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:408)
   at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
   at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:847)
   at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2311)
   at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1992)
   at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1506)
   at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1482)
   at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:246)
   at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:139)
   at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:47)
   at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226)
   at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:85)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at org.eclipse.core.launcher.Main.basicRun(Main.java:279)
   at org.eclipse.core.launcher.Main.run(Main.java:742)
   at org.eclipse.core.launcher.Main.main(Main.java:581)
!ENTRY org.eclipse.core.runtime 4 2 Jul 15, 2004 14:37:43.69
!MESSAGE Plug-in "com.swtdesigner" was unable to instantiate class "com.swtdesigner.DesignerPlugin".
!STACK 0
java.lang.NoSuchMethodException: com.swtdesigner.DesignerPlugin.<init>(org.eclipse.core.runtime.IPluginDescriptor)
   at java.lang.Class.getConstructor0(Unknown Source)
   at java.lang.Class.getConstructor(Unknown Source)
   at org.eclipse.core.internal.plugins.PluginDescriptor.internalDoPluginActivation(PluginDescriptor.java:477)
   at org.eclipse.core.internal.plugins.PluginDescriptor.doPluginActivation(PluginDescriptor.java:435)
   at org.eclipse.core.internal.plugins.PluginDescriptor.getPlugin(PluginDescriptor.java:403)
   at org.eclipse.core.internal.compatibility.PluginActivator.start(PluginActivator.java:48)
   at org.eclipse.osgi.framework.internal.core.BundleContext$1.run(BundleContext.java:1185)
   at java.security.AccessController.doPrivileged(Native Method)
   at org.eclipse.osgi.framework.internal.core.BundleContext.startActivator(BundleContext.java:1178)
   at org.eclipse.osgi.framework.internal.core.BundleContext.start(BundleContext.java:1110)
   at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:458)
   at org.eclipse.osgi.framework.internal.core.Bundle.start(Bundle.java:328)
   at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:133)
   at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:125)
   at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:114)
   at org.eclipse.ui.internal.WorkbenchPlugin$1.run(WorkbenchPlugin.java:160)
   at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:84)
   at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:157)
   at org.eclipse.ui.internal.dialogs.WorkbenchWizardElement.createExecutableExtension(WorkbenchWizardElement.java:96)
   at org.eclipse.ui.internal.ide.NewWizardShortcutAction.run(NewWizardShortcutAction.java:67)
   at org.eclipse.jface.action.Action.runWithEvent(Action.java:842)
   at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:509)
   at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:461)
   at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:408)
   at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
   at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:847)
   at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2311)
   at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1992)
   at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1506)
   at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1482)
   at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:246)
   at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:139)
   at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:47)
   at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226)
   at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:85)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at org.eclipse.core.launcher.Main.basicRun(Main.java:279)
   at org.eclipse.core.launcher.Main.run(Main.java:742)
   at org.eclipse.core.launcher.Main.main(Main.java:581)
ed
 

Return to Swing Designer

Who is online

Users browsing this forum: Google [Bot] and 1 guest