Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Install SWT on Windows 7 64-bit Machine(Need directions on what to install and how)
Install SWT on Windows 7 64-bit Machine [message #624198] Wed, 22 September 2010 04:06 Go to next message
Thom Little is currently offline Thom LittleFriend
Messages: 15
Registered: September 2010
Junior Member
I am attempting to create the HelloWorldSWT project documented in the distributed Eclipse.

I am running on a Windows 7 Professional 64-bit machine.

The instructions are marked with a ">"

>Open your Web browser to http://download.eclipse.org/eclipse/downloads/, select the latest release build, and find the SWT Binary and Source download. Save the file to your disk; you do not need to extract the archive.

I downloaded .... swt-3.6-win32-win32-x86_64.zip

>Import the SWT project from the main menu via File > Import..., and select Existing Projects into Workspace. Specify the archive file you downloaded and click Finish. This will create the org.eclipse.swt project which we will need to compile and run the application.

I did and it tells me there are no projects.

How do I install SWT on a Windows 7 Professional 64-bit machine so I can run the example application documented in the Eclipse distribution?

Thanks for the help.

... Thom
Re: Install SWT on Windows 7 64-bit Machine [message #625627 is a reply to message #624198] Wed, 22 September 2010 09:36 Go to previous messageGo to next message
Lakshmi P ShanmugamFriend
Messages: 279
Registered: July 2009
Location: India
Senior Member
Hi,

Please follow the below steps:
1) Extract the swt-3.6-win32-win32-x86.zip file
2) The extracted folder contains 2 jar files swt.jar and swt-debug.jar
3) On the Java build path page of your project, open the Libraries tab. And add the swt.jar as an external jar.

or you could import the SWT project from your eclipse installation itself.
Please see this bug for details -- https://bugs.eclipse.org/bugs/show_bug.cgi?id=318680


Lakshmi P Shanmugam
Re: Install SWT on Windows 7 64-bit Machine [message #626506 is a reply to message #625627] Wed, 22 September 2010 15:47 Go to previous messageGo to next message
Thom Little is currently offline Thom LittleFriend
Messages: 15
Registered: September 2010
Junior Member
I am using the 64-bit version. The working HelloWorldSWT looks like ...

import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;

public class HelloWorldSWT
{
public static void main( String[] args )
{
Display display = new Display( );
Shell shell = new Shell( display );
shell.setText( "Hello World" );
shell.open( );
while ( ! shell.isDisposed( ) )
{
if ( ! display.readAndDispatch( ) ) display.sleep( );
{
display.dispose( );
}
}

Thank you.

... Thom
Re: Install SWT on Windows 7 64-bit Machine [message #628807 is a reply to message #625627] Fri, 24 September 2010 08:42 Go to previous messageGo to next message
Lakshmi P ShanmugamFriend
Messages: 279
Registered: July 2009
Location: India
Senior Member
These steps should work for all platforms. Do they not work for you?

Lakshmi Shanmugam wrote on Wed, 22 September 2010 15:06
Hi,

Please follow the below steps:
1) Extract the swt-3.6-win32-win32-x86.zip file
2) The extracted folder contains 2 jar files swt.jar and swt-debug.jar
3) On the Java build path page of your project, open the Libraries tab. And add the swt.jar as an external jar.

or you could import the SWT project from your eclipse installation itself.
Please see this bug for details -- https://bugs.eclipse.org/bugs/show_bug.cgi?id=318680



Lakshmi P Shanmugam
Re: Install SWT on Windows 7 64-bit Machine [message #629009 is a reply to message #628807] Sat, 25 September 2010 21:44 Go to previous message
Thom Little is currently offline Thom LittleFriend
Messages: 15
Registered: September 2010
Junior Member
Yes it did. Thanks for the help.

In addition ... since into Eclipse in the first place to do Android development I encountered a numbert of notices that caused me to throw away what I had and install Eclipolse 3.5.2.

I installed the Windows 64-Bit vcersion.

The HelloWorldSWT instructions in the Welcome tutorial work exactly as documented.

... Thom
Previous Topic:Is it possible to open QWidget parented to eclipse mdi area
Next Topic:SWT List Selection
Goto Forum:
  


Current Time: Wed Apr 24 19:08:18 GMT 2024

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

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

Back to the top