Subject: Re: Question on Eclipse
From: Paul Freeman (email@example.com)
Date: Thu Nov 07 2002 - 09:31:13 EST
You need to add the libraries to the project itself. This is done
through the properties page for your project. Right click on the
project in the package explorer. Choose properties -> Java Build Path
-> Libraries tab. Click the Add External Jars button and navigate to
the plugin directory and select the jars that you nees.
>When I try to compile the "simple plugin" example from Eclipse help, I get
>an error in org.eclipse.ui saying it cannot find org.eclipse.swt.SWT for
>import. Apparently, others out there have experienced the same problem (see
>the attached Usenet posting). Can you offer any advice? Where do I find
> From: firstname.lastname@example.org (Marc Lubin)
> Newsgroups: comp.lang.java.programmer
> Subject: Eclipse 2.0.1: SWT errors compiling intro plug-in tutorial
> Date: 22 Sep 2002 16:01:39 -0700
> Organization: http://groups.google.com/
> Lines: 31
> Message-ID: <email@example.com>
> NNTP-Posting-Host: 126.96.36.199
> Content-Type: text/plain; charset=ISO-8859-1
> Content-Transfer-Encoding: 8bit
> X-Trace: posting.google.com 1032735699 27932 127.0.0.1 (22 Sep 2002
> X-Complaints-To: firstname.lastname@example.org
> NNTP-Posting-Date: 22 Sep 2002 23:01:39 GMT
> I'm having trouble with the Eclipse tutorial on the "Simple plug-in
> example". I've followed the steps they say to create a project,
> package and class. Then the tutorial says to simply copy their
> HelloWorldView.java code into the new class. Upon doing this, I get
> errors on all the import statements:
> import org.eclipse.swt.widgets.Composite;
> import org.eclipse.swt.widgets.Label;
> import org.eclipse.swt.SWT;
> import org.eclipse.ui.part.ViewPart;
> such as:
> Error The import org.eclipse.swt cannot be resolved
> line 3
> Further errors follow most likely from these initial errors.
> For the setup of Eclipse I simply downloaded the latest release
> (2.0.1) and extracted the files into its own directory.
> Comp Specs: Eclipse 2.0.1, jdk1.3.1_04, Windows XP Pro
> I have not seen questions in any of my searches in any way related to
> something like this though a friend ran into the same problem last
> night while he was trying the tutorial.
> Is the tutorial in some way out-of-date or wrong?
> Is there something I need to downlod or run to get the SWT libraries
> to be recognized?
> I appreciate any advice,
This archive was generated by hypermail 2b28 : Thu Nov 07 2002 - 09:34:07 EST