Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] Building SWT based applications

Jean,

This necessarily means that it could not find the class objects for SWT.
Try by using the following command and see what happens...

java -cp <SWT folder>/swt.jar -Djava.library.path=<Eclipse folder>/ws/motif

<your app>.class

<Eclipse folder>/ws/motif should point SWT native libraries.

-Sri


Jean-Jacques Dubray wrote:

> Hi:
>
> I am evaluating the feasibility/constraints of building applications
> based on SWT (outside of Eclipse).
>
> Does anyone know the pointer to a full example?
>
> I have tried to follow the instructions on the "Standard Widget Toolkit
> (SWT) - Standalone Examples Manual Setup" but I get an exception whether
> I set up the -Djava.library.path=... or not:
>
> java.lang.UnsatisfiedLinkError: no swt-win32-2026 in java.library.path
>         at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1410)
>         at java.lang.Runtime.loadLibrary0(Runtime.java:772)
>         at java.lang.System.loadLibrary(System.java:832)
>         at
> org.eclipse.swt.internal.Library.loadLibrary(Library.java:102)
>         at org.eclipse.swt.internal.win32.OS.<clinit>(OS.java:37)
>         at org.eclipse.swt.internal.win32.TCHAR.<clinit>(TCHAR.java:24)
>         at org.eclipse.swt.widgets.Widget.<clinit>(Widget.java:78)
>         at com.eigner.sandbox.swt.HelloWorld.main(HelloWorld.java:27)
>
> Does any one have any idea of what could happen?
>
> Thanks,
>
> Jean-Jacques
> Eigner
> 200 Fifth Avenue
> Waltham, MA 02451
> url: www.eigner.com
>
>
> _______________________________________________
> platform-swt-dev mailing list
> platform-swt-dev@xxxxxxxxxxx
> http://dev.eclipse.org/mailman/listinfo/platform-swt-dev



Back to the top