Discussion:
Source not found error for Eclipse
(too old to reply)
a
2009-05-09 14:02:18 UTC
Permalink
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
2009-05-09 17:33:11 UTC
Permalink
Post by a
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?
...
Post by a
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
<Button> Change Attached Source <Button>
What happened when you clicked that button?
--
Lew
RedGrittyBrick
2009-05-11 08:35:50 UTC
Permalink
Post by a
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
<Button> Change Attached Source <Button>
..............
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
v***@gmail.com
2014-01-25 00:03:31 UTC
Permalink
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
Loading...