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

I found the solution, I think the documentation is incorrect, 

You need to setup the java.library.path property with the location of
the swtxxx.dll and not the swt.jar

Here is the correct statement:

-Djava.library.path=<...>\eclipse\plugins\org.eclipse.swt\os\win32\x86


Jean-Jacques 
 


>>-----Original Message-----
>>From: platform-swt-dev-admin@xxxxxxxxxxx [mailto:platform-swt-dev-
>>admin@xxxxxxxxxxx] On Behalf Of Sridhar Bidigalu
>>Sent: Thursday, April 04, 2002 2:05 PM
>>To: platform-swt-dev@xxxxxxxxxxx
>>Subject: 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
>>
>>_______________________________________________
>>platform-swt-dev mailing list
>>platform-swt-dev@xxxxxxxxxxx
>>http://dev.eclipse.org/mailman/listinfo/platform-swt-dev




Back to the top