"Source not found" for ParseException.class when debugging

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • billelev
    New Member
    • Nov 2006
    • 119

    #1

    "Source not found" for ParseException.class when debugging

    I'm a relative newbie to java and have encountered a "source not found" error when trying to debug the following section of code (for the ParseException. class).

    Code:
    	public PaymentDates (String stlDate, String matDate, int payFreq) throws ParseException {
    		this.stlDate = Dates.convertStringToUSDate(stlDate);
    		this.matDate = Dates.convertStringToUSDate(matDate);
    		this.payFreq = payFreq;
    		configure();
    	}
    If I click on the "Change Attached Source..." button and select the folder containing the 'rt.jar' file it asks for, I get the same message.

    The release notes I have for release Eclipse 3.2.2 says the following: "The debugger requires that class files be compiled with debug attributes if it is to be able to display line numbers and local variables. Quite often, class libraries (for example, "rt.jar") are compiled without complete debug attributes, and thus local variables and method arguments for those classes are not visible in the debugger."

    but I'm not sure what this means! Can anyone help?!
  • JosAH
    Recognized Expert MVP
    • Mar 2007
    • 11453

    #2
    Originally posted by billelev
    If I click on the "Change Attached Source..." button and select the folder containing the 'rt.jar' file it asks for I get the same message.
    That's not the directory that contains the source code. The source code is stored
    in a file src.zip in the jdk directory (not the jre directory).

    kind regards,

    Jos

    Comment

    • billelev
      New Member
      • Nov 2006
      • 119

      #3
      Originally posted by JosAH
      That's not the directory that contains the source code. The source code is stored
      in a file src.zip in the jdk directory (not the jre directory).

      kind regards,

      Jos

      Jos...Thanks for that...I realized that I wasn't even running (nor had installed) a JDK. I have now installed a JDK and it is working well.

      Comment

      • JosAH
        Recognized Expert MVP
        • Mar 2007
        • 11453

        #4
        Originally posted by billelev
        Jos...Thanks for that...I realized that I wasn't even running (nor had installed) a JDK. I have now installed a JDK and it is working well.
        You're welcome of course; basically you don't need Sun's jdk if you've installed
        Eclipse but it comes in handy if/when you want to debug/step through all those
        methods.

        kind regards,

        Jos

        Comment

        Working...