Eclipse about debugging issues The source attachment does not contain the source for the file

Source: Internet
Author: User
Tags gtk
On Wed, Dec 2006 08:21:16 +0100, Daniel Megert wrote:
I followed your instructions ... feedback below.

> Since You has the Eclipse SDK downloaded let's do it the easy-to:
>
> 1. Start your workspace
> 2. File > Import ... > Plug-ins and Fragments
> 3. Click ' Next '
> 4. Verify the top most checkboxes are checked and that
> Points to your Eclipse installation

It did. No problems so far.

> If not:got to the PDE Target preference page and reset the settings
> 5. Select ' Binary project '
> 6. Click ' Next '
> 7. On the left side select ORG.ECLIPSE.SWT
> 8. Click ' Add '
> 9. Click ' Required plug-ins '
> 10. Click ' Finish '
> 11. Now check the that these steps worked:
> Use ctrl+shift+t to open an SWT type (e.g. Display) and verify
> that source was shown in the editor

This does isn't work. If I highlight Display, I get:

The source attachment does not contain the source for the file
Display.class. Can change the source attachment by clicking Change
Attached Source below.

> 12. Open your Java project ' s Build Path property page

project->properties-> Java Build Path

> 13. Make sure there is NO Swt.jar under ' Libraries '

SWT is there and under it is org.eclipse.swt.gtk.linux.x86. and under
Native Library Location It has.../workspace/org.eclipse.swt.gtk.linux.x86/
-Non modifiable.

> 14. On the ' Projects ' tab, add all the org.eclipse.swt* Projects.
> Imported under Step 10.

"Build path contains duplicate entry: ' Org.eclipse.swt.gtk.linux.x86 ' for
Project test "So I removed it here.

> 15. Click ' OK '
>
> You should now is setup correctly. In the need to switch
> To a new SWT version simply install the new version and repeat steps 1-10.

It works now.

FWIW, I has never had to manually add anything to does with SWT to my
Projects before.

Thanks for your help.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.