How to run a local Win32 SWT extension program locally?

I am studying the use of the SWT Win32 Extension . I have downloaded extension extension files as a code sample . However, I could not find how to run this example. When I run the application with my jnlp file , it starts. When I looked at the file, I saw that they defined their main class as org.sf.feeling.swt.win32.extension.example.Example, but this class is not part of the sample code (although almost everything else is there, including the "about" dialog.

So I'm looking for:

  • Simple core class code to run the example - or -
  • explanation where I can get the source code for Example.java.

UPDATE:

Yes it works. Thank @TrueSoft

But just clear a few points:

  • The source files used for use come from org.sf.feeling.swt.win32.extension.zip, right under the src folder. This file includes the org.sf.feeling.swt.win32.extension.example.Example file, which I was missing first
  • The 4 jar files in this zip file under the lib folder are needed to compile
  • not one, but 3 DLL files (in the same lib folder) needed to run
  • The path to the dll file must be specified as a VM argument:

-Djava.library.path="{containing folder path}"

+3
source share
1 answer

org.sf.feeling.swt.win32.extension.example.zip, org.sf.feeling.swt.win32.extension.zip ( /src ).
, org.sf.feeling.swt.win32.extension.jar swt-extension-win32.dll .

+1

Source: https://habr.com/ru/post/1722999/


All Articles