This week's giveaway is in the Spring forum.
We're giving away four copies of Learn Spring Security (video course) and have Eugen Paraschiv on-line!
See this thread for details.
Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

src.zip location on Snow Leopard

 
Maneesh Godbole
Saloon Keeper
Posts: 11021
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Lester Burnham
Rancher
Posts: 1337
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11021
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nope. Not there
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Pie
Posts: 11852
185
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
     
    Maneesh Godbole
    Saloon Keeper
    Posts: 11021
    12
    Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Awesome! Thanks!
     
    Lester Burnham
    Rancher
    Posts: 1337
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    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
    Posts: 11021
    12
    Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    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
    Pie
    Posts: 11852
    185
    C++ Firefox Browser IntelliJ IDE Java Mac Oracle
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    @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
    Posts: 1337
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    No, I'm on an Intel CPU. Maybe Maneesh didn't previously install the Java update(s) offered through the Software Update functionality?
     
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic