Does anybody knows why i cannot look into the source code of "Cipher" in eclipse? the source code is there and i can see some other build-in source code from openjdk such as "println" but cannot figure out the reason why i cannot view the source code of "Cipher" and other JCE class. I download the source package from grepcode website.
Asked
Active
Viewed 215 times
1 Answers
1
You need to attach source for that particular JAR. ctrl+click on any method which is implemented in that JAR, click on attach source from newly opened window. Give the SRC path of that JAR. This should do the trick for you.
-
i should have tried the approach you mentioned, as i said in this thread, i can see the implementation for some build-in method from jdk in eclipse but weird enough I cannot view some jce implementation. the fact is the source code have already in the source jar i have attached. – jungler Jan 21 '14 at 10:13
-
Adding jars in build path may help then. – Ved Jan 22 '14 at 07:05