Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Error executing standalone SWT application
Error executing standalone SWT application [message #465289] Thu, 08 December 2005 14:44 Go to next message
Eclipse UserFriend
Originally posted by: katharinas_mail.gmx.de

Hi all,

I'm trying to externalize my SWT application into an executable jar file=
.. =

All classpaths seem to be correct but when I execute the jar with java =

-jar app.jar I get the following error:

Exception in thread "main" java.lang.ClassCastException
at org.eclipse.swt.layout.FillLayout.computeChildSize
at org.eclipse.swt.widgets.Composite.computeSize
....
and so on.

I downloaded the standalone SWT jar with the same version I developed my=
=

program with.

Does anyone know what I'm doing wrong?

Thanks in advance!
Re: Error executing standalone SWT application [message #465305 is a reply to message #465289] Thu, 08 December 2005 19:29 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: sunil_kamath.nohotspammail.com

Karei <katharinas_mail@gmx.de> wrote:
> Hi all,
>
> I'm trying to externalize my SWT application into an executable jar
> file. All classpaths seem to be correct but when I execute the jar
> with java -jar app.jar I get the following error:
>
> Exception in thread "main" java.lang.ClassCastException
> at org.eclipse.swt.layout.FillLayout.computeChildSize
> at org.eclipse.swt.widgets.Composite.computeSize
> ...
> and so on.
>
> I downloaded the standalone SWT jar with the same version I developed
> my program with.
>
> Does anyone know what I'm doing wrong?
>
Your layoutData is probably incorrect.
Why don't you include a snippet of your code?

--
Sunil
Re: Error executing standalone SWT application [message #465317 is a reply to message #465289] Thu, 08 December 2005 23:17 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: friederich.kupzog.de

Hi,

I had the same problem when updating to SWT 3.2. In my case I forgot to
remove a GridData association when changing the layout from GridLayout
to FillLayout. 3.2 seems not to like this. Maybe you did the same mistake.

Hope that helped,
Friederich


Karei wrote:
> Hi all,
>
> I'm trying to externalize my SWT application into an executable jar
> file. All classpaths seem to be correct but when I execute the jar with
> java -jar app.jar I get the following error:
>
> Exception in thread "main" java.lang.ClassCastException
> at org.eclipse.swt.layout.FillLayout.computeChildSize
> at org.eclipse.swt.widgets.Composite.computeSize
> ...
> and so on.
>
> I downloaded the standalone SWT jar with the same version I developed
> my program with.
>
> Does anyone know what I'm doing wrong?
>
> Thanks in advance!
>
>
>


--
Friederich Kupzog
Elektronik & Software
Neusser Str. 5-7
50670 Köln
Tel +49 241 9979356
Fax +49 221 726670
www.kupzog.de/fkmk
Re: Error executing standalone SWT application [message #465343 is a reply to message #465289] Fri, 09 December 2005 09:41 Go to previous message
Eclipse UserFriend
Originally posted by: katharinas_mail.gmx.de

Thanks to both of you for the hint - I did forget to remove some GridDat=
a =

which didn't matter when running the program in Eclipse but somehow didn=
't =

work with the standalone SWT.jar.

Problem solved!
Previous Topic:Listening to the arrow keys
Next Topic:Browser widget and KeyListener
Goto Forum:
  


Current Time: Fri Apr 19 18:22:54 GMT 2024

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

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

Back to the top