Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » adding org.eclipse.swt
adding org.eclipse.swt [message #301104] Thu, 23 March 2006 14:46 Go to next message
Eclipse UserFriend
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 #301105 is a reply to message #301104] Thu, 23 March 2006 15:26 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: was.robert.gazeta.pl

If you create swt application, not plugin, select project
properties>java buld path > add library>libraries>add library
Robert

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?
>
Re: adding org.eclipse.swt [message #301113 is a reply to message #301105] Thu, 23 March 2006 17:16 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: pamarca.gmail.com

well, i tried to add it, but I couldn't find it...maybe it's not on my
system. Do I have to download it? I though that package came with eclipse..
Re: adding org.eclipse.swt [message #301156 is a reply to message #301113] Fri, 24 March 2006 04:19 Go to previous messageGo to next message
Eclipse UserFriend
swt libraries are in standard distribution, maybe search startup records
in .metadata/.log
rw
Pablo wrote:
> well, i tried to add it, but I couldn't find it...maybe it's not on my
> system. Do I have to download it? I though that package came with eclipse..
>
Re: adding org.eclipse.swt [message #301164 is a reply to message #301104] Fri, 24 March 2006 07:37 Go to previous message
Eclipse UserFriend
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
Previous Topic:[PDE builder] configure output method
Next Topic:Help Search for nested bottom up documentation structures failes
Goto Forum:
  


Current Time: Sun May 11 06:35:03 EDT 2025

Powered by FUDForum. Page generated in 0.02746 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top