468,291 Members | 1,603 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,291 developers. It's quick & easy.

"Source not found" for ParseException.class when debugging

119 100+
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).

Expand|Select|Wrap|Line Numbers
  1.     public PaymentDates (String stlDate, String matDate, int payFreq) throws ParseException {
  2.         this.stlDate = Dates.convertStringToUSDate(stlDate);
  3.         this.matDate = Dates.convertStringToUSDate(matDate);
  4.         this.payFreq = payFreq;
  5.         configure();
  6.     }
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?!
Oct 1 '07 #1
3 2977
JosAH
11,448 Expert 8TB
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
Oct 1 '07 #2
billelev
119 100+
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.
Oct 1 '07 #3
JosAH
11,448 Expert 8TB
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
Oct 1 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

33 posts views Thread by Steven Bethard | last post: by
33 posts views Thread by Jacob Oost | last post: by
6 posts views Thread by swartzbill2000 | last post: by
2 posts views Thread by Okko Willeboordse | last post: by
reply views Thread by NPC403 | last post: by
reply views Thread by Teichintx | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.