views:

143

answers:

4

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.

A: 

The website http://java.sun.com/javase/6/webnotes/README.html discusses the source code. The JDK which contains src.jar can be downloaded from http://java.sun.com/javase/downloads/index.jsp

Ed Griebel
Sun's Java isn't exactly Apple's.
Joey
+1  A: 

According to this blog post you may have to install them seperately.

ChristopheD
+3  A: 

On my system src.jar is in /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home

t0ne
+1 Mine, too. I see `src.jar` in all three installed homes under 10.5.8.
trashgod
I mess something with my installation. I don't see "apppledocs.jar" "docs.jar" nor "src.jar" but a manage to borrow somebody else's Mac and I see it there.
OscarRyz
Found in the same location on Snow Leopard 10.6.3
ChristopheD
A: 

It may be worth the effort to register. Navigation is straight out of El Laberinto del Fauno; but if you can find Dev Center > Mac > Developer Downloads > Java, there are developer updates that include material not found in Software Update.

Addendum: I'd stay away from the pre-release bundles, unless you're trying to solve a particular problem. The documentation bundles are convenient, though.

† Twenty-nine years as an Apple Developer, and it's still a hassle.

trashgod