How does one add source to a .class file on eclipse?

993 Views Asked by At

I am trying to add a date.class file to my eclipse project, but it returns Source Not Found. How do I create/ add a source file from a class file?

1

There are 1 best solutions below

0
On

If you are adding a library that you are using to your java project you can attach source by expanding the project node in package explorer view -> Referenced Libraries -> Locate your jar -> Right click, properties -> Java Source attachment.