Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to attach Source for rt.jar on linux?

 
manto kumar
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
For a Eclipse Juno EE version running on Linux, How to attach the sources?
The conventional pointing to src.zip in the attach source is not working that is ; its not displaying the correct line w.r.t the stack trace.
Please help.
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which Java are you using? The one from Oracle, or Open JDK? How did you install it, via your package manager? (Generally speaking, if you installed the Oracle JDK from the Oracle web site, then specifying that JDK as the default JRE in Eclipse should get the sources linked. If you installed something else, you'll need to let us know what.)
 
manto kumar
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Peter,
I have been able to resolve the problem myself. My Eclipse and project was referring to Open JDK whereas the tomcat server was pointing to Oracle JDK.Hence on changing both to the same JDK version, my problem was solved.
Thanks.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic