In Windows, there is ( was a ) src.jar
file that contains the java source files of the Java platform.
Is there something similar for Java 1.6 in OSX? I would like to specify this to my IDE so I can navigate to that source.
On Mac OS X 10.7 (Lion), you have to first download and install the developer package:
src.jar can then be found in:
/Library/Java/JavaVirtualMachines/1.6.0_***.jdk/Contents/Home/src.jar
On the older Mac OS X 10.6 (Snow Leopard), you do the same as above, except look for the newest Java for Mac OS X 10.6 Update XXX Developer Package):
src.jar can then be found in:
/Library/Java/JavaVirtualMachines/1.6.0_***.jdk/Contents/Home/src.jar
On my system src.jar is in /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With