missing "org.jdesktop.application.*"??

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

missing "org.jdesktop.application.*"??

Postby RickDunlap » Tue Jul 29, 2008 2:55 pm

I just installed Swing Designer for evaluation with Eclipse 3.4 on OS X 10.5.

I think something failed with this installation. I attempted to create a single frame application (JSR 296) and am getting compile errors involving missing "org.jdesktop.application.SingleFrameApplication", etc. It seems that the JSR 296 wizard is throwing an exception and not creating the appropriate java classes.

Here are the .log file contents:



!ENTRY org.eclipse.jface 4 0 2008-07-30 07:05:17.905
!MESSAGE /icons/wizard/Swing/SingleFrameApplication/banner.gif
!STACK 0
java.io.FileNotFoundException: /icons/wizard/Swing/SingleFrameApplication/banner.gif
at org.eclipse.osgi.framework.internal.protocol.bundleentry.Handler.findBundleEntry(Handler.java:44)
at org.eclipse.osgi.framework.internal.core.BundleResourceHandler.openConnection(BundleResourceHandler.java:168)
at java.net.URL.openConnection(URL.java:943)
at org.eclipse.core.runtime.internal.adaptor.URLConverterImpl.toFileURL(URLConverterImpl.java:31)
at org.eclipse.core.runtime.FileLocator.toFileURL(FileLocator.java:165)
at org.eclipse.jface.resource.URLImageDescriptor.getFilePath(URLImageDescriptor.java:137)
at org.eclipse.jface.resource.URLImageDescriptor.createImage(URLImageDescriptor.java:157)
at org.eclipse.jface.resource.ImageDescriptor.createImage(ImageDescriptor.java:227)
at org.eclipse.jface.resource.ImageDescriptor.createImage(ImageDescriptor.java:205)
at org.eclipse.jface.dialogs.DialogPage.getImage(DialogPage.java:265)
at org.eclipse.jface.wizard.WizardPage.getImage(WizardPage.java:148)
at org.eclipse.jface.wizard.WizardDialog.updateTitleBar(WizardDialog.java:1393)
at org.eclipse.jface.wizard.WizardDialog.update(WizardDialog.java:1232)
at org.eclipse.jface.wizard.WizardDialog.updateForPage(WizardDialog.java:1166)
at org.eclipse.jface.wizard.WizardDialog.access$2(WizardDialog.java:1139)
at org.eclipse.jface.wizard.WizardDialog$4.run(WizardDialog.java:1128)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.jface.wizard.WizardDialog.showPage(WizardDialog.java:1126)
at org.eclipse.jface.wizard.WizardDialog.nextPressed(WizardDialog.java:820)
at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:369)
at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624)
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:1561)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1585)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1570)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1360)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3474)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3064)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
at org.eclipse.jface.window.Window.open(Window.java:801)
at org.eclipse.ui.internal.handlers.WizardHandler$New.executeHandler(WizardHandler.java:253)
at org.eclipse.ui.internal.handlers.WizardHandler.execute(WizardHandler.java:273)
at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:281)
at org.eclipse.core.commands.Command.executeWithChecks(Command.java:476)
at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508)
at org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:169)
at org.eclipse.ui.internal.handlers.SlaveHandlerService.executeCommand(SlaveHandlerService.java:247)
at org.eclipse.ui.internal.actions.CommandAction.runWithEvent(CommandAction.java:157)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:583)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:500)
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1561)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1585)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1570)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1360)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3474)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3064)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2382)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2198)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:488)
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:193)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:382)
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(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
at org.eclipse.equinox.launcher.Main.run(Main.java:1236)

!ENTRY com.swtdesigner 4 4 2008-07-30 07:05:19.854
!MESSAGE Designer [6.7.0.200807042059]: java.lang.NullPointerException

Product: Swing Designer Evaluation
Version: 6.7.0.200807042059
Expected: Eclipse 3.4
Actual: Eclipse 3.4.0.v20080512
Actual Eclipse Build Name:
Actual Eclipse Build ID: I20080617-2000
IDE Actual Name: Eclipse
IDE Actual Version: 3.3.100.v200806172000
IDE Actual NL: en_US
Activation Key: SwingDesignerEval-CM0SH-NM0W0-GYQWN
Physical Address: 00-00-C5-47-22-6B, HardwareAddress[00-0D-93-40-45-B8], HardwareAddress[00-0D-93-FF-FE-40-45-B8]
Code Gen: Flat Mode, Use Existing, First Assignment, Make Final
Events: Anonymous Class
Platform Product: Eclipse
Platform Version: 3.3.100.v200806172000
OS Name: Mac OS X
OS Architecture: ppc
OS Version: 10.5.4

!STACK 0
java.lang.NullPointerException
at com.swtdesigner.model.util.jdt.ProjectUtilities.addClassPathJar(ProjectUtilities.java:273)
at com.swtdesigner.wizards.swing.appFramework.New_SingleFrameApplication_WizardPage.createTypeMembers(New_SingleFrameApplication_WizardPage.java:35)
at org.eclipse.jdt.ui.wizards.NewTypeWizardPage.createType(NewTypeWizardPage.java:2053)
at com.swtdesigner.wizards.DesignContainerWizard.finishPage(DesignContainerWizard.java:20)
at com.swtdesigner.wizards.swing.GenericNewSwingWizard.finishPage(GenericNewSwingWizard.java:36)
at com.swtdesigner.wizards.DesignerNewElementWizard$2.run(DesignerNewElementWizard.java:91)
at org.eclipse.jdt.internal.core.BatchOperation.executeOperation(BatchOperation.java:39)
at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:709)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800)
at org.eclipse.jdt.core.JavaCore.run(JavaCore.java:4650)
at com.swtdesigner.wizards.DesignerNewElementWizard$WorkbenchRunnableAdapter.run(DesignerNewElementWizard.java:181)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
RickDunlap
 
Posts: 2
Joined: Tue Jul 29, 2008 2:41 pm

Re: missing "org.jdesktop.application.*"??

Postby Eric Clayberg » Wed Jul 30, 2008 10:49 am

You can either try the latest Swing Designer build, or you can just add the AppFramework jar to your .classpath.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Re: missing "org.jdesktop.application.*"??

Postby RickDunlap » Wed Jul 30, 2008 11:57 am

Eric Clayberg wrote:You can either try the latest Swing Designer build, or you can just add the AppFramework jar to your .classpath.


Adding the 'AppFramework-1.03.jar' fixed it. I'll also tried installing the latest Swing Designer build (7/30/08) and that DID NOT fix the problem. Strange since 'AppFramework-1.03.jar' is in the eclipse plugin install.

UPDATE! I did a fresh install of Eclipse 3.4 and then installed the latest stable build of Swing Designer (7/30/08) and everything started working fine. I guess there was some stale foo from my previous install of Swing Designer. This is good to know. (An uninstaller for something other than Windows would be nice :wink: )
RickDunlap
 
Posts: 2
Joined: Tue Jul 29, 2008 2:41 pm

Re: missing "org.jdesktop.application.*"??

Postby Eric Clayberg » Thu Jul 31, 2008 8:41 am

RickDunlap wrote:I did a fresh install of Eclipse 3.4 and then installed the latest stable build of Swing Designer (7/30/08) and everything started working fine.

Glad to hear it worked.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA


Return to Swing Designer

Who is online

Users browsing this forum: No registered users and 1 guest