[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.platform.swt] Re: how to pack a SWT stand alone app?

Julien Orange wrote:
from http://download.eclipse.org/downloads/drops/R-2.1-200303272130/index.php :

To run a standalone SWT application, add the swt jar(s) to the classpath and add the directory/folder for the SWT JNI library to the
java.library.path.
For example, if you extract the download below to C:\SWT you would launch the HelloWorld application with the following command:

 java -classpath C:\SWT\swt.jar;C:\MyApp\helloworld.jar -Djava.library.path=C:\SWT  HelloWorld

The SWT jar and DLL downloads are available on the same page.

Julien



If you use JFace widgets, you will have to initialize the platform. This is what I was told for bug #35715.


http://bugs.eclipse.org/bugs/show_bug.cgi?id=35715

Unfortunatly, I do not know how to do this. I read the doc, but could not figure out how to get an existing application converted into a standalone plugin, and what is required for this plugin to run outside the Eclipse platform.

I am more and more thinking of dumping JFace widget use and create my own in my SWT MVC Wrapepr library (ttp://swtmvcwrapper.sourceforge.net).


Sincerely, Hans Deragon -- Deragon Informatique inc. Open source: http://www.deragon.biz http://swtmvcwrapper.sourceforge.net mailto://hans@xxxxxxxxxxx http://autopoweroff.sourceforge.net