I am using maven, when I click some method of JDK from Eclipse, I received the error like
“Source not found”. I am wondering how to get the source code of JDK from Maven?
I am using maven, when I click some method of JDK from Eclipse, I
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Which class(es) are you attempting to look at? Assuming you installed a JDK and configured Eclipse to use it – and not a JRE, which doesn’t contain the
src.zipwith the source code, this should work in most cases. An exception is for many (if not all) of thecom.sun.*classes and others that are only available under the SCSL or the JRL licenses – which is available through a separate download from Oracle, after accepting one of these licenses.