Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] A question about stand-alone SWT applications

Tuesday, March 25, 2003, 5:29:07 PM, j.random.programmer wrote:

> Hi:

> I am new to SWT and I am interested in using SWT/JFace
> as an alternative to Swing. I am not interested in 
> the Eclipse IDE at all so before I can develop/run
> stand alone programs, I need to put the approrpiate
> ..dll's and .jars where the JDK (Java 1.4.1 on Win2k)
> can find them.

> I have come across 2 articles that point to two
> differnt ways to do this.

> 1)
> Put the windows .dll in jre\bin
> Put swt.jar and jface.jar on your classpath

> I would prefer this if guaranteed to work.

> However, the article at
> http://www-106.ibm.com/developerworks/library/os-ecgui1/?ca=dnt-43
> says the following:

> ----
> You need these jar files on your class path: 
> C:\eclipse-2.1.0\plugins\org.eclipse.jface_2.1.0\jface.jar

> C:\eclipse-2.1.0\plugins\org.eclipse.runtime_2.1.0\runtime.jar

> C:\eclipse-2.1.0\plugins\org.eclipse.swt.win32_2.1.0\ws\win32\swt.jar

> C:\eclipse-2.1.0\plugins\org.eclipse.ui.workbench_2.1.0\workbench.jar

> C:\eclipse-2.1.0\plugins\org.eclipse.core.runtime_2.1.0\runtime.jar

> ------

> My question is this:

> Do I need the runtime, workbench and core.runtime
> jar's on my classpath or will swt/jface suffice ?

> Best regards,

> --j

This sort of question about using SWT should be posted to the
eclipse.tools newsgroup.  This mailing list is for those who are
implementing SWT.

That said, since you said you are using SWT standalone and not JFace,
all you really need on your classpath is swt.jar.  The other 4 jars
are not necessary.  You will also need to provide the
java.library.path VM argument pointing to the location of the SWT .dll
file.

Hope this helps,
David

-- 
Regards,
David                            
mailto:dlwhiteman@xxxxxxxxxxxxxxx



Back to the top