• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java Source Code is Where?

 
Janus Tetsuo
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Going through the J2EE tutorial I am told to look at org.xml.sax.helpers.DefaultHandler. Great, except I can't find where the source is on my installation. I tried searching the install directory for DefaultHandler.java and came up with nothing. Where is the source? I am using Windows not a 'nix if that helps. Thanks.
 
Ray Stojonic
Ranch Hand
Posts: 326
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Assuming you've installed the J2SE JDK, the source for DefaultHandler will be in: path/to/java/src/org/xml/sax/helpers
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch, Janus!
Note that in a typical J2SE SDK installation, the source code for much (or all, I'm not certain) of the classes in the J2SE API are available in a file name "src.zip" or "src.jar" located in the root J2SE SDK installation directory. On my installation, the class you're in search of is indeed there.
Note that this file does not contain all of the classes in J2EE. Offhand, I'm not sure whether they are installed by default with the J2EE SDK.
 
Janus Tetsuo
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the welcome Dirk
No 'src' directory or file names found. The source isn't there, I'm pretty sure of that. I guess I can install J2SE (it's strange that J2SE would include the source and J2EE does not). My concern is I have labored for a while now to get J2EE up and running on my localhost and I worry that installing J2SE could screw something up. Is there a place to download just the source itself? Can someone put to rest my concerns on installing J2SE?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic