Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » org.eclipse.swt.SWTException: Unsupported or unrecognized format
org.eclipse.swt.SWTException: Unsupported or unrecognized format [message #436426] Thu, 08 September 2005 08:52 Go to next message
Glenn Marintes is currently offline Glenn MarintesFriend
Messages: 23
Registered: July 2009
Junior Member
I have exported an RCP application in Eclipse 3.1
When I tried to run the application, i get this error. Can anyone
explain this error? It doesnt seem to be on our code. The application
works fine if run from eclipse though.

org.eclipse.swt.SWTException: Unsupported or unrecognized format
at org.eclipse.swt.SWT.error(SWT.java:2942)
at org.eclipse.swt.SWT.error(SWT.java:2865)
at org.eclipse.swt.SWT.error(SWT.java:2836)
at
org.eclipse.swt.internal.image.FileFormat.load(FileFormat.ja va:73)
at org.eclipse.swt.graphics.ImageLoader.load(ImageLoader.java:1 26)
at
org.eclipse.swt.graphics.ImageDataLoader.load(ImageDataLoade r.java:18
)
at org.eclipse.swt.graphics.ImageData.<init>(ImageData.java:327)
at
org.eclipse.jface.resource.URLImageDescriptor.getImageData(U RLImageDe
scriptor.java:57)
at
org.eclipse.jface.resource.ImageDescriptor.createImage(Image Descripto
r.java:279)
at
org.eclipse.jface.resource.ImageDescriptor.createResource(Im ageDescri
ptor.java:171)
at
org.eclipse.jface.resource.DeviceResourceManager.allocate(De viceResou
rceManager.java:56)
at
org.eclipse.jface.resource.AbstractResourceManager.create(Ab stractRes
ourceManager.java:87)
at
org.eclipse.jface.resource.LocalResourceManager.allocate(Loc alResourc
eManager.java:83)
at
org.eclipse.jface.resource.AbstractResourceManager.create(Ab stractRes
ourceManager.java:87)
at
org.eclipse.jface.resource.ResourceManager.createImageWithDe fault(Res
ourceManager.java:107)
at
org.eclipse.jface.action.ActionContributionItem.updateImages (ActionCo
ntributionItem.java:898)
at
org.eclipse.jface.action.ActionContributionItem.update(Actio nContribu
tionItem.java:705)
at
org.eclipse.jface.action.ActionContributionItem.fill(ActionC ontributi
onItem.java:330)
at
org.eclipse.jface.action.ToolBarManager.update(ToolBarManage r.java:31
3)
at
org.eclipse.jface.action.ToolBarManager.createControl(ToolBa rManager.
java:101)
at
org.eclipse.jface.action.ToolBarContributionItem.fill(ToolBa rContribu
tionItem.java:190)
at
org.eclipse.jface.action.CoolBarManager.update(CoolBarManage r.java:90
7)
at
org.eclipse.jface.action.CoolBarManager.createControl(CoolBa rManager.
java:244)
at
org.eclipse.jface.window.ApplicationWindow.createCoolBarCont rol(Appli
cationWindow.java:446)
at
org.eclipse.ui.internal.WorkbenchWindow.createDefaultContent s(Workben
chWindow.java:946)
at
org.eclipse.ui.internal.WorkbenchWindowConfigurer.createDefa ultConten
ts(WorkbenchWindowConfigurer.java:575)
at
org.eclipse.ui.application.WorkbenchAdvisor.createWindowCont ents(Work
benchAdvisor.java:685)
at
org.eclipse.ui.internal.application.CompatibilityWorkbenchWi ndowAdvis
or.createWindowContents(CompatibilityWorkbenchWindowAdvisor. java:85)
at
org.eclipse.ui.internal.WorkbenchWindow.createContents(Workb enchWindo
w.java:897)
at org.eclipse.jface.window.Window.create(Window.java:418)
at
org.eclipse.ui.internal.Workbench.busyOpenWorkbenchWindow(Wo rkbench.j
ava:663)
at
org.eclipse.ui.internal.Workbench.doOpenFirstTimeWindow(Work bench.jav
a:1282)
at
org.eclipse.ui.internal.Workbench.openFirstTimeWindow(Workbe nch.java:
1223)
at
org.eclipse.ui.internal.WorkbenchConfigurer.openFirstTimeWin dow(Workb
enchConfigurer.java:190)
at
org.eclipse.ui.application.WorkbenchAdvisor.openWindows(Work benchAdvi
sor.java:706)
at org.eclipse.ui.internal.Workbench.init(Workbench.java:1034)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1636)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.jav
a:367)
at
org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:143)
at
com.las.platf.cl.ui.main.RCPApplication.run(RCPApplication.j ava:26)
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformAct
ivator.java:226)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.ja
va:376)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.ja
va:163)
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.invokeFramework(Main.java:334 )
at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
at org.eclipse.core.launcher.Main.run(Main.java:973)
at org.eclipse.core.launcher.Main.main(Main.java:948)
Unsupported or unrecognized format
Re: org.eclipse.swt.SWTException: Unsupported or unrecognized format [message #436429 is a reply to message #436426] Thu, 08 September 2005 09:16 Go to previous messageGo to next message
Glenn Marintes is currently offline Glenn MarintesFriend
Messages: 23
Registered: July 2009
Junior Member
My bad...
Sorry for the bother.. its indeed in our codes...
Some stupid human created this code:

Action addBracketAction = new Action(null, ImageDescriptor
.createFromURL(this.getClass().getResource(""))){};

and added it to a toolbar.
Glenn Marintes wrote:


> I have exported an RCP application in Eclipse 3.1
> When I tried to run the application, i get this error. Can anyone
> explain this error? It doesnt seem to be on our code. The application
> works fine if run from eclipse though.
>
> org.eclipse.swt.SWTException: Unsupported or unrecognized format
> at org.eclipse.swt.SWT.error(SWT.java:2942)
> at org.eclipse.swt.SWT.error(SWT.java:2865)
> at org.eclipse.swt.SWT.error(SWT.java:2836)
> at
> org.eclipse.swt.internal.image.FileFormat.load(FileFormat.ja va:73)
> at org.eclipse.swt.graphics.ImageLoader.load(ImageLoader.java:1 26)
> at
> org.eclipse.swt.graphics.ImageDataLoader.load(ImageDataLoade r.java:18
> )
> at org.eclipse.swt.graphics.ImageData.<init>(ImageData.java:327)
> at
> org.eclipse.jface.resource.URLImageDescriptor.getImageData(U RLImageDe
> scriptor.java:57)
> at
> org.eclipse.jface.resource.ImageDescriptor.createImage(Image Descripto
> r.java:279)
> at
> org.eclipse.jface.resource.ImageDescriptor.createResource(Im ageDescri
> ptor.java:171)
> at
> org.eclipse.jface.resource.DeviceResourceManager.allocate(De viceResou
> rceManager.java:56)
> at
> org.eclipse.jface.resource.AbstractResourceManager.create(Ab stractRes
> ourceManager.java:87)
> at
> org.eclipse.jface.resource.LocalResourceManager.allocate(Loc alResourc
> eManager.java:83)
> at
> org.eclipse.jface.resource.AbstractResourceManager.create(Ab stractRes
> ourceManager.java:87)
> at
> org.eclipse.jface.resource.ResourceManager.createImageWithDe fault(Res
> ourceManager.java:107)
> at
> org.eclipse.jface.action.ActionContributionItem.updateImages (ActionCo
> ntributionItem.java:898)
> at
> org.eclipse.jface.action.ActionContributionItem.update(Actio nContribu
> tionItem.java:705)
> at
> org.eclipse.jface.action.ActionContributionItem.fill(ActionC ontributi
> onItem.java:330)
> at
> org.eclipse.jface.action.ToolBarManager.update(ToolBarManage r.java:31
> 3)
> at
> org.eclipse.jface.action.ToolBarManager.createControl(ToolBa rManager.
> java:101)
> at
> org.eclipse.jface.action.ToolBarContributionItem.fill(ToolBa rContribu
> tionItem.java:190)
> at
> org.eclipse.jface.action.CoolBarManager.update(CoolBarManage r.java:90
> 7)
> at
> org.eclipse.jface.action.CoolBarManager.createControl(CoolBa rManager.
> java:244)
> at
> org.eclipse.jface.window.ApplicationWindow.createCoolBarCont rol(Appli
> cationWindow.java:446)
> at
> org.eclipse.ui.internal.WorkbenchWindow.createDefaultContent s(Workben
> chWindow.java:946)
> at
> org.eclipse.ui.internal.WorkbenchWindowConfigurer.createDefa ultConten
> ts(WorkbenchWindowConfigurer.java:575)
> at
> org.eclipse.ui.application.WorkbenchAdvisor.createWindowCont ents(Work
> benchAdvisor.java:685)
> at
> org.eclipse.ui.internal.application.CompatibilityWorkbenchWi ndowAdvis
> or.createWindowContents(CompatibilityWorkbenchWindowAdvisor. java:85)
> at
> org.eclipse.ui.internal.WorkbenchWindow.createContents(Workb enchWindo
> w.java:897)
> at org.eclipse.jface.window.Window.create(Window.java:418)
> at
> org.eclipse.ui.internal.Workbench.busyOpenWorkbenchWindow(Wo rkbench.j
> ava:663)
> at
> org.eclipse.ui.internal.Workbench.doOpenFirstTimeWindow(Work bench.jav
> a:1282)
> at
> org.eclipse.ui.internal.Workbench.openFirstTimeWindow(Workbe nch.java:
> 1223)
> at
> org.eclipse.ui.internal.WorkbenchConfigurer.openFirstTimeWin dow(Workb
> enchConfigurer.java:190)
> at
> org.eclipse.ui.application.WorkbenchAdvisor.openWindows(Work benchAdvi
> sor.java:706)
> at org.eclipse.ui.internal.Workbench.init(Workbench.java:1034)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1636)
> at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.jav
> a:367)
> at
> org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:143)
> at
> com.las.platf.cl.ui.main.RCPApplication.run(RCPApplication.j ava:26)
> at
> org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformAct
> ivator.java:226)
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.ja
> va:376)
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.ja
> va:163)
> 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.invokeFramework(Main.java:334 )
> at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
> at org.eclipse.core.launcher.Main.run(Main.java:973)
> at org.eclipse.core.launcher.Main.main(Main.java:948)
> Unsupported or unrecognized format
Re: org.eclipse.swt.SWTException: Unsupported or unrecognized format [message #1797628 is a reply to message #436429] Sat, 03 November 2018 00:54 Go to previous message
Liu Fuchuan is currently offline Liu FuchuanFriend
Messages: 1
Registered: November 2018
Junior Member
I have encountered with this problem too! Change the Jre version please! Just try!
Previous Topic:Layout issue in Windows
Next Topic:Product configuration in a separate project
Goto Forum:
  


Current Time: Thu Oct 22 22:07:36 GMT 2020

Powered by FUDForum. Page generated in 0.02459 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top