wood burning stoves 2.0*
The moose likes IDEs, Version Control and other tools and the fly likes How to attach Source for rt.jar on linux? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "How to attach Source for rt.jar on linux?" Watch "How to attach Source for rt.jar on linux?" New topic
Author

How to attach Source for rt.jar on linux?

manto kumar
Greenhorn

Joined: Jan 10, 2012
Posts: 10
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

Joined: May 14, 2008
Posts: 5812
    
    7

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.)


JBoss In Action
manto kumar
Greenhorn

Joined: Jan 10, 2012
Posts: 10
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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to attach Source for rt.jar on linux?
 
Similar Threads
Attaching source code to a dependant JAR in Eclipse
Rt.jar Has No Source Attached In Ecllipse
class file editor
Making jstack in Java 5 work.
Source Attachment