• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

source not found in Eclipse during debugging

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello! I have an Eclipse problem. When I debug jee application i get an error: source not found. This happens when I get to the end of the java file and press step over. I think that after I got to the end of one java file I should be able to see everything displayed in built-in browser and then I could press the button and debug another servlet. It was like this before I formatted the hard drive (I did it because of a computer virus). So now I get the message: "source not found" and I can press the button: "Edit source lookup path". But I don't know what path shoud I use. Please someone help me!

I have windows xp installed eclipse europa and websphere application server community edition.
The same problem was with Tomcat and eclipse ganymede and eclipse galileo.
 
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can add the source to a jar you are using. This is described here: http://www.vogella.de/articles/Eclipse/article.html#classpath

If you get the message for standard Java code, add the source code to rt.jar. You find a src.zip in your JDK installation.
 
Dariusz Kominek
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Lars thanks for your reply.
I tried to add two paths (to my *.java and *.class files) in Edit Lookup Source. But it doesn't help.
I also tried to add source to rt.jar and resource.jar and it doesn't help either.
I cannot find src.zip on my computer - it isn't in jdk folder.
When I add j2ee.jar and javaee.jar debugger wants me to add source for HttpServlet.class.
Do you have any other ideas Lars?
Any help will be appreciated.

I'm working on Ubuntu, Eclipse Galileo and WASCE.
 
If somebody says you look familiar, tell them you are in porn. Or in these tiny ads:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic