Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » INSTALLING SWT ON ECLIPSE UNDER WINDOWS(ERROR WHEN IMPORTING SWT ZIP)
INSTALLING SWT ON ECLIPSE UNDER WINDOWS [message #529554] Mon, 26 April 2010 11:23 Go to next message
Abelardo Mising name is currently offline Abelardo Mising nameFriend
Messages: 6
Registered: April 2010
Junior Member
Hello world!

I was importing the SWT zip file when Eclipse told me: "No projects are found to import"

What's wrong?

Eclipse version: Eclipse IDE for Java Developers

Version: 1.2.2.20100216-1730
Build id: 20100218-1602

SWT .zip file version: swt-3.6M6-win32-win32-x86

Thanks world!

Wink
Re: INSTALLING SWT ON ECLIPSE UNDER WINDOWS [message #529571 is a reply to message #529554] Mon, 26 April 2010 12:47 Go to previous messageGo to next message
Daniel Krügler is currently offline Daniel KrüglerFriend
Messages: 853
Registered: July 2009
Senior Member
On 26.04.2010 13:23, Abelardo wrote:
> I was importing the SWT zip file when Eclipse told me: "No projects are
> found to import"

It's not really clear to me what you tried. Could you please explain
in more detail, what you were doing?

- Daniel
Re: INSTALLING SWT ON ECLIPSE UNDER WINDOWS [message #529576 is a reply to message #529571] Mon, 26 April 2010 13:17 Go to previous messageGo to next message
Abelardo Mising name is currently offline Abelardo Mising nameFriend
Messages: 6
Registered: April 2010
Junior Member
Once i downloaded the .zip file from SWT project webpage, I opened Eclipse and I tried to import it into my workspace.

I clicked in the "import..." option.

I selected the approppiate .zip file.

At this point, Eclipse showed the message: "No projects are found to import".

What did I do wrong?


Thanks!

BRs,

Abelardo.
Re: INSTALLING SWT ON ECLIPSE UNDER WINDOWS [message #529577 is a reply to message #529554] Mon, 26 April 2010 13:23 Go to previous messageGo to next message
Bernd van Velsen is currently offline Bernd van VelsenFriend
Messages: 19
Registered: November 2009
Junior Member
inside the zip file there is an swt.jar file. it is tha file that you need to add to your buil dpath if you want to use SWT
Re: INSTALLING SWT ON ECLIPSE UNDER WINDOWS [message #529579 is a reply to message #529576] Mon, 26 April 2010 13:19 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
The ZIP you downloaded can not be imported. You should extract the .zip
and include the jars to your build path.

Tom

Am 26.04.10 15:17, schrieb Abelardo:
> Once i downloaded the .zip file from SWT project webpage, I opened
> Eclipse and I tried to import it into my workspace.
>
> I clicked in the "import..." option.
>
> I selected the approppiate .zip file.
>
> At this point, Eclipse showed the message: "No projects are found to
> import".
>
> What did I do wrong?
>
>
> Thanks!
>
> BRs,
>
> Abelardo.
>
Re: INSTALLING SWT ON ECLIPSE UNDER WINDOWS [message #529582 is a reply to message #529577] Mon, 26 April 2010 13:34 Go to previous messageGo to next message
Abelardo Mising name is currently offline Abelardo Mising nameFriend
Messages: 6
Registered: April 2010
Junior Member
Thanks Bernd van Velsen.

Finally, I did it you have commented.

Then, this message appeared:

Snippet164 cannot be resolved to a type

at this line of code:

Image image = new Image (display, Snippet164.class.getResourceAsStream ("eclipse.png"));


(I added both "swt-debug.jar" and "swt.jar" files)


Brs,

Abelardo.
Re: INSTALLING SWT ON ECLIPSE UNDER WINDOWS [message #529595 is a reply to message #529579] Mon, 26 April 2010 13:57 Go to previous messageGo to next message
Abelardo Mising name is currently offline Abelardo Mising nameFriend
Messages: 6
Registered: April 2010
Junior Member
Hi Tom,

According with the instructions showed at this page:

http://www.eclipse.org/swt/eclipse.php

the .zip downloaded from this page:

http://www.eclipse.org/downloads/download.php?file=/eclipse/ downloads/drops/S-3.6M6-201003121448/swt-3.6M6-win32-win32-x 86.zip

(for windows, obviously)

can be imported by using this option from Eclipse.


Brs,

Abelardo.
Re: INSTALLING SWT ON ECLIPSE UNDER WINDOWS [message #530115 is a reply to message #529582] Wed, 28 April 2010 14:22 Go to previous messageGo to next message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
Registered: July 2009
Senior Member
> According with the instructions showed at this page:
>
> http://www.eclipse.org/swt/eclipse.php


Thanks for pointing this out, these instructions are no longer valid, I've
logged https://bugs.eclipse.org/bugs/show_bug.cgi?id=310826 .

> Then, this message appeared:
>
> Snippet164 cannot be resolved to a type

Snippet164 is not in an swt jar. I notice that it's referencing external
file "eclipse.png", so your best bet is probably to retrieve the
org.eclipse.swt.snippets project from CVS. For instructions on connecting
to eclipse's CVS repository see the first step of
http://www.eclipse.org/swt/cvs.php .

Grant
Re: INSTALLING SWT ON ECLIPSE UNDER WINDOWS [message #530297 is a reply to message #530115] Thu, 29 April 2010 09:12 Go to previous messageGo to next message
Abelardo Mising name is currently offline Abelardo Mising nameFriend
Messages: 6
Registered: April 2010
Junior Member
Thank you, Grant!

Brs,

Abelardo.
Re: INSTALLING SWT ON ECLIPSE UNDER WINDOWS [message #543796 is a reply to message #529554] Wed, 30 June 2010 15:08 Go to previous messageGo to next message
Bojan Djuric is currently offline Bojan DjuricFriend
Messages: 1
Registered: June 2010
Junior Member
use stable (windows) build
http://www.eclipse.org/swt/

3.5.2 Final Release - 26 February 2010
It works.

to developers: please change swt download address in eclipse tutorial, untill 3.6 package is fixed. Eclipse patch maybe?

--
http://dbojan.co.cc

[Updated on: Wed, 30 June 2010 18:49]

Report message to a moderator

Re: INSTALLING SWT ON ECLIPSE UNDER WINDOWS [message #544911 is a reply to message #529554] Tue, 06 July 2010 03:55 Go to previous messageGo to next message
Attila  is currently offline Attila Friend
Messages: 1
Registered: July 2010
Junior Member
Thanks for Round 1 of help -- finding the SWT Binary and Source page. (updating the tutorial would *really* help.)

Now for round 2 -- even specifying the swt.jar far STILL does not allow me to import the SWT stuff. I still get the "No projects are found to import" error. Sad

So now what do I do?

-- Attila
Re: INSTALLING SWT ON ECLIPSE UNDER WINDOWS [message #547449 is a reply to message #530115] Fri, 16 July 2010 20:50 Go to previous message
Ian Leslie is currently offline Ian LeslieFriend
Messages: 137
Registered: July 2009
Senior Member
Why take away the import as project way of including SWT into java projects. I have several workspaces with multiple utility projects. When I upgrade Eclipse being able to delete the old SWT project and import the new one into my workspace works really well. With one operation all my projects get updated.

I personally don't really want to go back to setting up macros to point to SWT .jar files and then add them by hand to each of my projects.

Is it possible to change this decision? Is there something we all gain from doing it this new way that I am missing?

Thanks,

Ian

[quote title=Grant Gayed wrote on Wed, 28 April 2010 10:22]> According with the instructions showed at this page:
>
> http://www.eclipse.org/swt/eclipse.php


Thanks for pointing this out, these instructions are no longer valid, I've
logged https://bugs.eclipse.org/bugs/show_bug.cgi?id=310826 .
Previous Topic:Working with javascript on SWT browser yeild the different result from IE on Windows
Next Topic:Re: Integrating C++ GUI toolkit into RCP application?
Goto Forum:
  


Current Time: Fri Mar 29 05:04:14 GMT 2024

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

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

Back to the top