SWT AddressBook example [message #481855] |
Mon, 24 August 2009 11:07  |
Eclipse User |
|
|
|
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 09:57   |
Eclipse User |
|
|
|
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 12:46  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03644 seconds