Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » SWT AddressBook example
SWT AddressBook example [message #481855] Mon, 24 August 2009 15:07 Go to next message
Eclipse UserFriend
Originally posted by: ahmed.elmasri.gmail.com

Hello,
I am new to SWT and I have been playing with the examples provided
such as the AddressBook. I followed the instructions on how to install
the examples and run them into eclipse and I was successful. However,
I am not able to run the same example from the source as a Java
application. Here is what I did: I simply created a new eclipse Java
Project
and added required jars and the four classes to the project. So, I am
not missing anything and my project complies fine. When I run it it
doesn't launch the AddressBook application and it doesn't do anything.
Any idea what I might be missing?
Thanks,
Ahmed
Re: SWT AddressBook example [message #482145 is a reply to message #481855] Tue, 25 August 2009 13:57 Go to previous messageGo to next message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
Registered: July 2009
Senior Member
Hi Ahmed,

You mention instructions, so I assume you've seen
http://www.eclipse.org/swt/examples.php .

When you try to run the AddressBook it just dies silently? There should
typically be an error written to the Console view in this case. Are you on
OSX by any chance? If so, then add a try{<main() method's
body>}catch(Throwable e) {e.printStackTrace();} around the
AddressBook.main() method's body to see the error (only required on Mac).

Other than this, my only other suggestion is to set a breakpoint in the
main() method and Debug the app instead of Running it, to see where it stops
executing.

HTH,
Grant


"Ahmed Abdeen Hamed" <ahmed.elmasri@gmail.com> wrote in message
news:c4e697d975358af83f4f03fd6a45bf30$1@www.eclipse.org...
> Hello,
> I am new to SWT and I have been playing with the examples provided
> such as the AddressBook. I followed the instructions on how to install
> the examples and run them into eclipse and I was successful. However,
> I am not able to run the same example from the source as a Java
> application. Here is what I did: I simply created a new eclipse Java
> Project
> and added required jars and the four classes to the project. So, I am
> not missing anything and my project complies fine. When I run it it
> doesn't launch the AddressBook application and it doesn't do anything.
> Any idea what I might be missing?
> Thanks,
> Ahmed
>
Re: SWT AddressBook example [message #482200 is a reply to message #482145] Tue, 25 August 2009 16:46 Go to previous message
Eclipse UserFriend
Originally posted by: ahmed.elmasri.gmail.com

Thanks Grant. Looks like the Launcher application for the SWT example was
blocking it. I stopped it and the AddressBook example runs as an
application now. Thank you very much.
Ahmed
Previous Topic:SWT event returns wrong coordinates in bidi mode
Next Topic:adding a menubar to two a composite
Goto Forum:
  


Current Time: Sun Dec 15 15:09:54 GMT 2019

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

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

Back to the top