Home » Newcomers » Newcomers » Attach Source not working(cannot attach the source of a jar file)
Attach Source not working [message #521151] |
Tue, 16 March 2010 15:11 |
John Missing name Messages: 6 Registered: January 2010 |
Junior Member |
|
|
I have a jar on my build path of a project, the source of the jar is another project in my workspace.
When I hit F3 to see the source of a class or method a "Class File Editor" window opens which tells me "Source not found". I click the "Attach Source..." button and a "Source Attachment Configuration" dialog opens.
There are 3 options to choose from, Workspace, External File, External Folder.
None of them work, I can choose an option, select the source, click ok, the cursor goes to an hour glass, when it returns to an arrow nothing has happened, no source.
I can compile the jar with the source, but this is more work then it sounds like.
Any ideas?
Some more info, I'm running Oracle Workshop for WebLogic 10.3, which is running over Eclipse 3.3.2
Thanks
John
[Updated on: Tue, 16 March 2010 15:11] Report message to a moderator
|
|
|
Re: Attach Source not working [message #521184 is a reply to message #521151] |
Tue, 16 March 2010 16:41 |
|
I have trouble with this too. When it's code you have, don't go find the
code itself, but select the src folder above it. At least, when it has
worked for me, that's what I've done.
Also, of course, if the (foreign) JAR you're consuming doesn't include
source code, you won't be able to see it.
Last, try right-clicking on the project, choose Build Path, then the
Libraries tab, click on the triangle next to the library whose code
interests you, then expand the JAR in question, click on Source, then
navigate, similarly, to the place where the source should be. This is, I
think, how you're supposed to set things up ahead of running into
missing code in the editor (ctrl-click) or debugger.
Again, when it has ever worked, this has been how I've done it. It
doesn't seem to work every time. I'm hoping one day to understand why.
Best of luck,
Russ Bateman
On 3/16/2010 9:11 AM, John wrote:
> I have a jar on my build path of a project, the source of the jar is
> another project in my workspace.
>
> When I hit F3 to see the source of a class or method a "Class File
> Editor" window opens which tells me "Source not found". I click the
> "Attach Source..." button and a "Source Attachment Configuration" dialog
> opens.
> There are 3 options to choose from, Workspace, External File, External
> Folder.
> None of them work, I can choose an option, select the source, click ok,
> the cursor goes to an hour glass, when it returns to an arrow nothing
> has happened, no source.
>
> I can compile the jar with the source, but this is more work then it
> sounds like.
>
> Any ideas?
>
> Some more info, I'm running Oracle Workshop for WebLogic 10.3, which is
> running over Eclipse 3.3.2
> Thanks
> John
|
|
| | | |
Re: Attach Source not working [message #805472 is a reply to message #521466] |
Thu, 23 February 2012 20:17 |
Melinda Savoy Messages: 2 Registered: February 2012 |
Junior Member |
|
|
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 to the SPRING.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. I'm completely new to SPRING and really could use a fix for this.
Just an FYI, I posted this same question on the Oracle Workshop forum and of course no one ever responded.
Any HELP would be appreciated. Regards.
[Updated on: Thu, 23 February 2012 20:21] Report message to a moderator
|
|
| | |
Goto Forum:
Current Time: Wed Sep 25 02:17:28 GMT 2024
Powered by FUDForum. Page generated in 0.06878 seconds
|