Search code examples
javamacosjpda

Location of Java examples on Mac OSX


I'm looking for the example source code that is supposed to come with the JVM, specifically the file demo/jpda/examples.jar. Where is this located on OSX? (is it even on Mac OSX?)

Thanks.


Solution

  • As @Evan points out Apple provides a proprietary implementation of the JVM and so it doesn't necessarily provide the same example. However, if you download the OS X developer tools either from Apple or copy them off of the media that came with your computer, you can find a number of Java application source files and examples in /Macintosh HD/Developer/Extras/Java.