Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Source not found error for Eclipse

1,683 views
Skip to first unread message

a

unread,
May 9, 2009, 10:02:18 AM5/9/09
to
Hi,

I got the following error message, when I run my program.
I am using Eclipse. I suspect that there are some eclipse configuration
problem. Can anyone help me please?

Thanks

Class File Editor

Source not found

The source attachment does not contain the source for the file
Configuration.class.
You can change the source attachment by clicking Change Attached Source
below:
<Button> Change Attached Source <Button>
..............


Lew

unread,
May 9, 2009, 1:33:11 PM5/9/09
to
a wrote:
> I got the following error message, when I run my program.
> I am using Eclipse. I suspect that there are some eclipse configuration
> problem. Can anyone help me please?
...

> Class File Editor
>
> Source not found
>
> The source attachment does not contain the source for the file
> Configuration.class.
> You can change the source attachment by clicking Change Attached Source
> below:
> <Button> Change Attached Source <Button>

What happened when you clicked that button?

--
Lew

RedGrittyBrick

unread,
May 11, 2009, 4:35:50 AM5/11/09
to

Perhaps you tried to include a binary Jar in your project but mistakenly
used the "source attachment" facility instead of simply adding the Jar
to the build path?

http://help.eclipse.org/help32/index.jsp?topic=/org.eclipse.jdt.doc.user/reference/ref-124.htm

I'd use Package Explorer to locate the Jar that contains
Configuration.class, Choose Properties > Java Source Attachment from the
context menu and remove any spurious source attachment. Ditto the other
possibilities listed in the above reference.

--
RGB

vallurusa...@gmail.com

unread,
Jan 24, 2014, 7:03:31 PM1/24/14
to
In Source attachment select external file and attach the src.zip file that will be in the java version folder in program files...



Read more: http://javarevisited.blogspot.com/2012/12/how-to-attach-source-in-eclipse-Jar-JDK-debugging.html#ixzz2rMc5wYiE

0 new messages