aspose file tools
The moose likes Mac OS and the fly likes src.zip location on Snow Leopard Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » Mac OS
Reply 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: 8439

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.


[Donate a pint, save a life!] [How to ask questions] [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: 8439

Nope. Not there
Andrew Monkhouse
author and jackaroo
Marshal Commander

Joined: Mar 28, 2003
Posts: 10820
    
  25

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: 8439

    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: 8439

    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: 10820
        
      25

    @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?
     
    I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
     
    subject: src.zip location on Snow Leopard
     
    Similar Threads
    Today's iMac refresh...
    Mac newbie
    java 7 Project name
    Classpath? Duh, what?
    Oracle on mac