I am using the eclipse bundle for android on my mac. I am writing some code that extends Observable
extends Observable
When I F3
on Observable
the source was not found. I try finding the source in
/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
But I am not finding the source. Does anyone know how I can attach the source of core java to ADT eclipse?
maybe you should install the JDK instead of JRE, you can find a code directly here
http://developer.classpath.org/doc/java/util/Observable-source.html
link to download JDK : http://www.oracle.com/technetwork/java/javase/downloads/index.html
after installation look for src.zip file in your insall directory
Since there is no src.zip
in /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
I give that up and decide to use the source for java 7, which is at /Library/Java/JavaVirtualMachines/jdk1.7.0_25.jdk/Contents/Home
. Note that /Library
in the second instance is not short for /System/Library
; they are two different paths.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.