Results 1 to 5 of 5
  1. #1
    ko_aung is offline Member
    Join Date
    Apr 2010
    Location
    Singapore
    Posts
    6
    Rep Power
    0

    Question Can run, but unable to debug. Having 'Source not found' error.

    Hi,

    I've been using Eclipse Galileo SR1 with JDK 1.6u16 for some time. The other day, I needed to install JDK 1.4.19 for some old project. Since then, I can't debug my projects anymore.

    I can run the projects though. When I debug, I got 'Source not found' error. It's asking for location of src for 'rt.jar'. Even though I point to the 'src.zip' from JDK, the problem still exists.

    I know it's a matter of configuration but I can't get it working.

    Has anybody encountered the same issue or knows a way to fix this?

    Thanks..

    Regards,
    ko_aung

  2. #2
    j2me64's Avatar
    j2me64 is offline Senior Member
    Join Date
    Sep 2009
    Location
    Zurich, Switzerland
    Posts
    962
    Rep Power
    6

    Default

    Quote Originally Posted by ko_aung View Post
    Has anybody encountered the same issue or knows a way to fix this?

    yes, debugger "Source not found" but following what PhHein suggested I was able to fix it.

  3. #3
    ko_aung is offline Member
    Join Date
    Apr 2010
    Location
    Singapore
    Posts
    6
    Rep Power
    0

    Default

    hi j2me64,

    thanks for pointing out. since i don't have any customized settings in eclipse, i just downloaded a fresh copy.

    and those projects with different jdk rather than my default, i set it in project properties explicitly and set the src location as you suggested.

    it fixed the problem.

    thanks.

    regards,
    ko_aung

  4. #4
    TG_KG is offline Member
    Join Date
    Apr 2010
    Posts
    1
    Rep Power
    0

    Default

    I am seeing the same error during debugging, however I need more info on the solution by PhHein.
    I can get to the buildpath and library and the lib tree and the source attachment location.
    However, what path am I to enter here. Is it the path to some eclipse file on my computer? or to the java program that I wrote?

    Do I have to set the source attachment for all of the lib items? and do I use the same path?

  5. #5
    ko_aung is offline Member
    Join Date
    Apr 2010
    Location
    Singapore
    Posts
    6
    Rep Power
    0

    Default

    hi,

    you need to point the source attachment location to 'src.zip' file which comes together with JDK.

    Do I have to set the source attachment for all of the lib items? and do I use the same path?
    for that question, i think it depends on how you're debugging. if you're trying to step into a third party jar file, you will need src for that particular jar.
    for debugging packages from JDK, i just set the source attachment location for all jar files (from JDK) to the same 'src.zip' file. i guess that's how it should be configure. :P

    cheers!

Similar Threads

  1. Jsp source not found
    By jadeite100 in forum Web Frameworks
    Replies: 2
    Last Post: 01-19-2010, 02:23 PM
  2. Jsp source not found
    By jadeite100 in forum JavaServer Pages (JSP) and JSTL
    Replies: 1
    Last Post: 01-17-2010, 01:35 AM
  3. error debug
    By stid in forum Eclipse
    Replies: 2
    Last Post: 10-16-2009, 07:44 PM
  4. Replies: 0
    Last Post: 11-22-2008, 01:49 AM
  5. Strange error message "Source not found"
    By ppayal in forum Eclipse
    Replies: 0
    Last Post: 11-25-2007, 06:19 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •