facebook

attach source to jar file

  1. MyEclipse IDE
  2.  > 
  3. Off Topic
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #284880 Reply

    Sir/Madam,
    I have an application and I need to debug code that exists in a jar file.
    In my .classpath,I signify this intent by the following line:
    <classpathentry sourcepath=”C:/dev/eclipse/MillimanTemplate/milliman_step_pageflow/source” path=”/hannover_newbiz_jars/milliman/milliman_step_pageflow.jar” kind=”lib”/>

    I would have thought that when I click on this .jar (milliman_step_pageflow.jar) file from Package Explorer; I’d be able to “drill”into the source.
    However, the eclipse IDE displays to binary code.

    The User guide states the following:
    The Source Attachment dialog can be reached in several ways:

    1) Select a JAR in the Package Explorer and choose Properties > Java Source Attachment from the context menu or the Project menu
    2) Open the Java Build Path page of a project (Projects > Properties > Java Build Path). On the Libraries page expand the library’s node and select the Source attachment attribute and press Edit

    When I try option 1, I am not presented with the “Java Source Attachment” option.
    When I try option 2, this works; the results are the .classpath line above.

    How do I display the source code. What am I doing wrong ?
    Thanks,
    Ralph

    #284909 Reply

    Riyad Kalla
    Member

    Ralph,
    Try not to edit the .classpath file directly. I suggest removing your manual modifications, then finding the JAR in your project, right-clicking it, going to Build Path and selecting “Add to Build Path”.

    Then it should be listed under the top level “Referenced Library” node, you can then expand that,find the JAR and adjust it’s source attachment from there.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: attach source to jar file

You must be logged in to post in the forum log in