[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Re: Running SWT Outside Eclipse Instructions

Mark Dexter schrieb:
Mark Dexter wrote:
There are instructions for running SWT applications in Windows at http://www.eclipse.org/swt/examples.php (Running standalone SWT Examples outside of eclipse).

In these instructions, it says if you are running eclipse 3.3 or higher, to skip the part about copying the 3 dll files (e.g., swt-awt-win32-xxxx.dll and 2 others) to the plugins directory and skip the -Djava.library.path=.

Also, these dll files used to be included in the SWT download (e.g., swt-3.2.2-win32-win32-x86.zip) but aren't included in the 3.3 download. So I take it they have been replaced or are no longer needed?

Is there a document that explains how this now works in 3.3? Where is the platform-specific layer for SWT called from? Thanks. Mark

Hi. I think I answered my own question. The DLL files are now included in the SWT.JAR file for Windows. So I take it that some Java magic takes place that allows SWT applications to find the DLL's inside the SWT.JAR file. So we only need the platform-specific SWT.JAR file in the

yes.

Class-Path of the manifest to run SWT app's and we don't need to worry about DLL files. Is this correct? Is this documented somewhere? Thanks. Mark

That's quite easy, when an SWT class is loaded those .dlls, .sos, ... are extracted from the swt.jar to a temporary directory and loaded from there :-)


Tom


-- B e s t S o l u t i o n . at -------------------------------------------------------------------- Tom Schindl JFace-Committer --------------------------------------------------------------------