开发者

How do I run the SWT Win32 extension example program locally?

开发者 https://www.devze.com 2022-12-12 03:04 出处:网络
I am looking into using the SWT Win32 Extension. I downloaded the extension jar files, and the example code. However, I couldn\'t find how to run the example. When I run the application with their jnl

I am looking into using the SWT Win32 Extension. I downloaded the extension jar files, and the example code. However, I couldn't find how to run the example. When I run the application with their jnlp file, it runs. When I looked into the file, I saw that they specify 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, including the "about" dialog.

So what I'm looking for is either:

  1. A simple main class code to run the example - or -
  2. an explanation where I can get the original code for Example.java.

UPDATE:

Yay, it works. Thanks, @TrueSoft!

But just to clear a few points:

  1. the source files to use come from org.sf.feeling.swt.win32.extension.zip, right under the src folder. That one includes the org.sf.feeling.swt.win32.extension.example.Example file I was missing in the first place
  2. the 4 jar files in that zip under the lib folder are required for compilation
  3. not one but 3 dll files (in 开发者_JAVA技巧that same lib folder) required for running
  4. dll file path should be specified as a VM argument:

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


You have the sources both in the file org.sf.feeling.swt.win32.extension.example.zip and in org.sf.feeling.swt.win32.extension.zip (in /src directory).
To run the examples, you must add a user library with the file org.sf.feeling.swt.win32.extension.jar and include the file swt-extension-win32.dll in your project folder.

0

精彩评论

暂无评论...
验证码 换一张
取 消