Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » SWT Tutorial doesn't work?(The SWT tutorial on the main eclipse Welcome page doesn't work? )
SWT Tutorial doesn't work? [message #726851] Mon, 19 September 2011 17:38 Go to next message
Art Held is currently offline Art HeldFriend
Messages: 2
Registered: September 2011
Junior Member
I suspect this is a VERY dumb new-user trick, however....
I downloaded and installed the latest Eclipse for Java (32bit Indigo).
I downloaded and installed the latest SDK (v7, 32bit).

I successfully built and ran the basic "Hello World" tutorial.

But when I try to follow the instructions for the SWT tutorial shown on the Tutorials Welcome page, titled
"Create a Hello World SWT application"
they do not work.

The first step is:
Open the Import wizard from the main menu via File > Import..., and select Plug-in Development > Plug-ins and Fragments. Click Next.


However, there is no Plug-in Development menu item.

I've tried:
installing SWT separately,
using the "Click to Perform" options,
All fail.

Sorry to take folks time with something so trivial, but any advice / suggestions on what basic step(s) I've missed? I'm stumped....

(no subject) [message #726860 is a reply to message #726851] Mon, 19 September 2011 17:54 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3245
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 19-Sep-11 11:38, Art Held wrote:
> I suspect this is a VERY dumb new-user trick, however....
> I downloaded and installed the latest Eclipse for Java (32bit Indigo).
> I downloaded and installed the latest SDK (v7, 32bit).
>
> I successfully built and ran the basic "Hello World" tutorial.
>
> But when I try to follow the instructions for the SWT tutorial shown on
> the Tutorials Welcome page, titled "Create a Hello World SWT application"
> they do not work.
>
> The first step is:
> Open the Import wizard from the main menu via File > Import..., and
> select Plug-in Development > Plug-ins and Fragments. Click Next.
>
>
> However, there is no Plug-in Development menu item.
>
> I've tried:
> installing SWT separately, using the "Click to Perform" options,
> All fail.
>
> Sorry to take folks time with something so trivial, but any advice /
> suggestions on what basic step(s) I've missed? I'm stumped....


Which Eclipse package did you download? It may be one that doesn't have
support for plug-in development. I'm not certain which one has that; it
might be "Classic".
Re: (no subject) [message #726867 is a reply to message #726860] Mon, 19 September 2011 18:30 Go to previous messageGo to next message
Art Held is currently offline Art HeldFriend
Messages: 2
Registered: September 2011
Junior Member
Thanks for the response!

I downloaded the SE (Standard Edition) found here:
http: //www .eclipse.org/downloads/packages/eclipse-ide-java-developers/indigor

(since the forum won't let me post a link until I've got 5 posts, I stuck in two spaces...)

This appears to be the "default" version for non-enterprise work. Is there a better choice?



(no subject) [message #727206 is a reply to message #726860] Tue, 20 September 2011 15:42 Go to previous messageGo to next message
Eric Rizzo is currently offline Eric RizzoFriend
Messages: 2366
Registered: July 2009
Senior Member
On 9/19/11 1:54 PM, Russell Bateman wrote:
> On 19-Sep-11 11:38, Art Held wrote:
>> I suspect this is a VERY dumb new-user trick, however....
>> I downloaded and installed the latest Eclipse for Java (32bit Indigo).
>> I downloaded and installed the latest SDK (v7, 32bit).
>>
>> I successfully built and ran the basic "Hello World" tutorial.
>>
>> But when I try to follow the instructions for the SWT tutorial shown on
>> the Tutorials Welcome page, titled "Create a Hello World SWT application"
>> they do not work.
>>
>> The first step is:
>> Open the Import wizard from the main menu via File > Import..., and
>> select Plug-in Development > Plug-ins and Fragments. Click Next.
>>
>>
>> However, there is no Plug-in Development menu item.
>>
>> I've tried:
>> installing SWT separately, using the "Click to Perform" options,
>> All fail.
>>
>> Sorry to take folks time with something so trivial, but any advice /
>> suggestions on what basic step(s) I've missed? I'm stumped....
>
>
> Which Eclipse package did you download? It may be one that doesn't have
> support for plug-in development. I'm not certain which one has that; it
> might be "Classic".
>

Either Eclipse Classic or "Eclipse for RCP and RAP Developers" would
work for SWT development.

You can also use Help > Install New Software... to install the PDE stuff
into your Eclipse. In the install dialog, select the Indigo repository
to work with, then find "Eclipse plug-in development environment" in the
list, select that, and install.

Eric
Re: SWT Tutorial doesn't work? [message #911017 is a reply to message #727206] Mon, 10 September 2012 20:18 Go to previous messageGo to next message
Rude Mo is currently offline Rude MoFriend
Messages: 1
Registered: September 2012
Junior Member
I realize this is in response to a rather old post but I was having the same problem in trying the SWT tutorial. I am using Eclipse Juno 4.2.

I found this

www.java-forums.org/eclipse/53817-having-problems-getting-started-eclipse.html

where it states:
Help -> Install New Software

Work with: --All Available Sites--

General Purpose Tools -> Eclipse Plug-in Development Environment

[Finish]

After installing this plug-in and restarting Eclipse, you will be able to proceed with the tutorial.


I installed this plug-in, everything is now hunky-dory!
icon10.gif  Re: SWT Tutorial doesn't work? [message #956074 is a reply to message #911017] Wed, 24 October 2012 08:09 Go to previous messageGo to next message
Jinn Fan is currently offline Jinn FanFriend
Messages: 1
Registered: October 2012
Junior Member
thx,btw, maybe it's :



Mobile and ...(forget) -> Eclipse Plug-in Development Environment
icon8.gif  Re: SWT Tutorial doesn't work? [message #961835 is a reply to message #956074] Sun, 28 October 2012 16:43 Go to previous messageGo to next message
Larry Parker is currently offline Larry ParkerFriend
Messages: 8
Registered: October 2012
Location: Carson City, Nevada
Junior Member
I'm having a different problem with the SWT Tutorial. The below is what errors I'm getting:

Exception in thread "main" java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons:
no swt-win32-4234 in java.library.path
no swt-win32 in java.library.path
Can't load library: C:\Users\Larry\.swt\lib\win32\x86_64\swt-win32-4234.dll
Can't load library: C:\Users\Larry\.swt\lib\win32\x86_64\swt-win32.dll
Re: SWT Tutorial doesn't work? [message #1015315 is a reply to message #961835] Thu, 28 February 2013 08:25 Go to previous messageGo to next message
Torben Jensen is currently offline Torben JensenFriend
Messages: 1
Registered: February 2013
Junior Member
Copy files from

C:\Program Files\eclipse\configuration\org.eclipse.osgi\bundles\195\1\.cp\

to

C:\Users\<username>\.swt\lib\win32\x86_64\

where <username> is your username.
Re: SWT Tutorial doesn't work? [message #1184686 is a reply to message #1015315] Wed, 13 November 2013 16:20 Go to previous message
marc pouliot is currently offline marc pouliotFriend
Messages: 1
Registered: November 2013
Junior Member
Hi
I had the same problem.
I am surprised by the solution. How did you find out ??
The error message was :

Can't load library: C:\Users\Larry\.swt\lib\win32\x86_64\swt-win32-4234.dll
Can't load library: C:\Users\Larry\.swt\lib\win32\x86_64\swt-win32.dll

and the solution is to copy...
from : (!!!)
C:\Program Files\eclipse\configuration\org.eclipse.osgi\bundles\195\1\.cp\[\i]
the files : (!!)
swt-gdip-win32-4234.dll
and
swt-gdip-4234.dll

thank you so MUCH !
Marc
I would have never found this ..
Previous Topic:XText
Next Topic:Show in folder button
Goto Forum:
  


Current Time: Wed Nov 26 09:08:58 GMT 2014

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

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