• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Jj Roberts
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Himai Minh
  • Carey Brown
  • salvin francis

JDK Source Code on 10.4 Tiger

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This seems like a group that would know something about this one -

I am trying to step into the JDK source code for JList.class to better understand the keypress event handling. I have installed the latest (1.4.2_08-219) Java build available for Mac OS 10.4 Tiger, which does not seem to have the src.zip or src.jar in the Home directory that I would attach to the classes.jar library in Eclipse 3.1. I tried downloading the matching SDK from SUn and attaching the src.zip from there, but the breakpoints don't match the code using that approach.

Any ideas on how to accomplsh that?
 
Marshal
Posts: 67478
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I tried downloading the matching SDK from SUn and attaching the src.zip from there, but the breakpoints don't match the code using that approach.



Not surprising. Sun does not provide a JDK for the Mac, so Apple has to do it itself.

I don't know if Apple provides the source code for their implementation -- I've never felt the need for it so I haven't done any digging. You can start your investigation here.
 
Rancher
Posts: 43016
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The source comes with Apples Developer Tools and Documentation, so if you have installed all that, it's somewhere in the /Developer folder. Can't check where, as I have no Mac around.
 
sharp shooter, and author
Posts: 1913
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The source can be found at /Library/Java/Home/src.jar, although you might need to unzip it since the directory hierarchy starts src/
[ July 15, 2005: Message edited by: Simon Brown ]
 
I am displeased. You are no longer allowed to read this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic