• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Bear Bibeault
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh

JDK Source Code on 10.4 Tiger

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Sheriff
Posts: 67537
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 43024
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic