Eclipse attach source to class file
All you'll see is some binary information, with these messages at the top of the file:. The message really should end with "by clicking the Attach Source button below:".
On my Mac OS X laptop, when I click this button I'm prompted to select the location containing the source for classes. Sarcasm: Well, if I knew that I wouldn't be here, now would I? After a little digging, I found the source code on Sun's website.
Specifically, for Mac OS X Next, I didn't expand this file, but just moved it to a Reference folder that I keep in my home directory. In that case, you have to remember that the runtime classpath is different from the build path. You may have the source attached correctly but the launch configuration might refer to a different JAR for those classes.
Double-check that the build path and the launch config are in sync. Hope this helps, Eric Report message to a moderator. Thanks for the heads up Eric Report message to a moderator.
Thu, 23 February Melinda Savoy Messages: 2 Registered: February Thank goodness someone else had posted about this. Did any of you guys ever find a solution to this issue? I just took a new job and no one here seems to understand that a java source attachment file can be applied to the JAR.
Specifically, I am trying to apply the spring-sources. JAR file. I put the path in and then the path disappears if I go back in their to view it.
This is a major snafu on Oracle's part because as stated previously when I want to see what a particular method is doing I can't. Any HELP would be appreciated. Fri, 24 February I never got this to work, since they were all projects in development I just slowly slowly slowly added the source to each jar or war. Sorry Report message to a moderator. Wed, 01 April Solved: I had the same problem. I want to attach source in it. Because whenever i try to open any parent class say ' String ' or 'HttpServlet' then it does not open that class and give me message to attach the source file.
Please tell me which source file it is exactly asking for? And how can i get those source files first and attach in my eclipse. So that in future i don't face such issues. Thanks in advance for your precious time. Peter Johnson. I like
0コメント