This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Mac OS and the fly likes src.zip location on Snow Leopard Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » Mac OS
Bookmark "src.zip location on Snow Leopard" Watch "src.zip location on Snow Leopard" New topic
Author

src.zip location on Snow Leopard

Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10426
    
    8

The src.zip on my Snow Leopard seems to have vanished after an update. Any idea where its located? Or do I need to download it? If yes, from where?
Not able to see the source in eclipse is quite frustrating at times.


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Lester Burnham
Rancher

Joined: Oct 14, 2008
Posts: 1337
Yes, the Java directories are now in a different place: /Library/Java/JavaVirtualMachines. What looks like a humongous .jdk file is actually a directory, somewhere in which you'll find src.jar, docs.jar and appledocs.jar.
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10426
    
    8

Nope. Not there
Andrew Monkhouse
author and jackaroo
Marshal Commander

Joined: Mar 28, 2003
Posts: 11465
    
  94

Found it!
  • Log into Apple Developer Connection (free account is fine)
  • In the Downloads section (second panel on the right hand side), select Java
  • Choose the Developer Package that is right for your JDK and OS level
  • download the package and install it


  • You should then find the source in something like /Library/Java/JavaVirtualMachines/1.6.0_22-b04-307.jdk/Contents/Home/src.jar


    The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
    Maneesh Godbole
    Saloon Keeper

    Joined: Jul 26, 2007
    Posts: 10426
        
        8

    Awesome! Thanks!
    Lester Burnham
    Rancher

    Joined: Oct 14, 2008
    Posts: 1337
    Interesting - that's exactly where it was on my machine, but without having to install anything (just the Java updates offered by Software Update, obviously).
    Maneesh Godbole
    Saloon Keeper

    Joined: Jul 26, 2007
    Posts: 10426
        
        8

    I suspect it was present initially on my machine too (not sure of the location though), but some update wiped it out. Let's see what happens this time after the update
    Andrew Monkhouse
    author and jackaroo
    Marshal Commander

    Joined: Mar 28, 2003
    Posts: 11465
        
      94

    @Lester - I have some vague recollection of you being on a PowerPC based Mac. Is that still the case? And is it possible that this could explain the discrepancy?
    Lester Burnham
    Rancher

    Joined: Oct 14, 2008
    Posts: 1337
    No, I'm on an Intel CPU. Maybe Maneesh didn't previously install the Java update(s) offered through the Software Update functionality?
     
    GeeCON Prague 2014
     
    subject: src.zip location on Snow Leopard