Error executing standalone SWT application [message #465289] |
Thu, 08 December 2005 14:44 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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!
|
|
|
Powered by
FUDForum. Page generated in 0.03526 seconds