Eclipse: mapping source code for class file?

I run Eclipse 3.5.2 and debug the class that calls the method - call it flaky()- in one of my other .jar files. When I enter flaky(), it shows the source code on a tab in the debugger with a file name like Flaky.class.

The problem is that the code I see looks old and outdated, so I wonder what file I'm looking for.

Is there any way to find out the path to the file that displays Eclipse?

+5
source share
2 answers

Go to the Package Explorer view with the open file in the current editor. Click the "Link with editor" radio button (two arrows). This should go to the file of the class you are looking at, which should be in the bank you are using. If the can is in the library, you should see the path to the can in the package explorer. If not, you can see the path to it in the settings. From there, you can also use Chin Huang's answer to find where the given source file is located.

+7
source

View JAR file properties. In the Java source attachment, you will see where Eclipse gets the source code for the classes in the JAR file.

+4
source

All Articles