adding org.eclipse.swt [message #301104] |
Thu, 23 March 2006 14:46  |
Eclipse User |
|
|
|
Originally posted by: pamarca.gmail.com
Well, that. I want to add the org.eclipse.swt package so that eclipse will
recognize it when I try to import it...Any help?
|
|
|
|
|
|
Re: adding org.eclipse.swt [message #301164 is a reply to message #301104] |
Fri, 24 March 2006 07:37  |
Eclipse User |
|
|
|
Pablo wrote:
> Well, that. I want to add the org.eclipse.swt package so that eclipse
> will recognize it when I try to import it...Any help?
>
So this would work better in the org.eclipse.swt group but anyway:
You have 2 choices:
Option 1:
1) go to http://www.eclipse.org/swt/ and download the swt-3.1.2*.zip
appropriate for you platform (linux-gtk, win32, whatever)
2) use File>Import...>Existing Projects into Workspace and use the
"archive" option to select the zip. you should see an org.eclipse.swt
project selected, just import it.
3) in your java project use the popup menu>Build Path>Configure Build
Path... to open the build path dialog, and add org.eclipse.swt as a
dependency on the Projects tab
And you're good to go, it'll run correctly as a normal Java Application.
For just developing SWT apps this is the preferred method, as the
org.eclispe.swt project has one swt.jar and all of the native libraries.
Option 2:
1) You can add the 2 org.eclipse.swt*.jar files from the
ECLIPSE_HOME/plugins directory to the build path Libraries tab. I'd use
the Add Variable... button and extend ECLIPSE_HOME.
Then I think you have to run it as an SWT application, not a normal one.
When it's time to deploy, you'll need to get all the jars on the path
and extract the native libs.
Later,
PW
|
|
|
Powered by
FUDForum. Page generated in 0.02746 seconds