This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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: 5823
    
    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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to attach Source for rt.jar on linux?