Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6348209
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T21:22:36+00:00 2026-05-24T21:22:36+00:00

Possible Duplicate: Source code for Mac OS X java version 1.6.0_22 I’ve been developing

  • 0

Possible Duplicate:
Source code for Mac OS X java version 1.6.0_22

I’ve been developing a web app using Java EE 6. At work I’m using Netbeans on Windows 7. I always took it for granted that I could view the Java SE 6 source by, say, ctrl-clicking on String and seeing the code.

Recently I installed Netbeans on my macbook at home (Mac OS X 10.6.5) and downloaded the project. Everything’s working fine, but I noticed I can’t view the source of the standard java classes any more. All methods have the throw new RuntimeException("Compiled Code"); in them.

What’s missing that I need to install here?

Update: Okay, after reading this discussion I went to http://connect.apple.com/ and downloaded/installed Java for Mac OS X 10.6 Update 5 Developer Package (also had to update OSX to 10.6.8). However, I still can’t view the source in Netbeans. How do I configure Netbeans so the Java SE 6 source is viewable?

Update 2: I’ve been using http://javasourcecode.org/ in the meantime, but it would still be better to view the source in Netbeans.

Update 3: it looks like if I go to Tools->Java Platforms->Sources I can choose the source to read from. I tried selecting /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/1.6.0_26-b03-384.jdk but this didn’t work, which I guess makes sense since this is the default platform.

I keep reading everywhere that I should find the .jar I need at /Library/Java/Home/src.jar but it isn’t there. A Spotlight search for src.jar or src.zip turns up blank. Can someone please help me fill in the blanks here?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T21:22:37+00:00Added an answer on May 24, 2026 at 9:22 pm

    Found the answer in this post: Source code for Mac OS X Java Updates Not sure why I didn’t find it earlier as I searched pretty extensively – must have used the wrong keywords.

    Apparently it’s now located at /Library/Java/JavaVirtualMachines/1.6.0_26-b03-384.jdk/Contents/Home/src.jar. My mistake was not opening the package contents of 1.6.0_26-b03-384.jdk.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: How do you send email from a Java app using Gmail? How
Possible Duplicate: Source code for java array There is a Java source file for
Possible Duplicate: Understanding Python decorators I was reading a django app source code where
Possible Duplicate: Recommended Eclipse plugins to generate UML from Java code I am using
Possible Duplicate: Compiling C code for .NET I have a bunch of C source
Possible Duplicate: iPhone/iPad App Code Obfuscation - Is it Possible? Worth it? I have
Possible Duplicate: Dynamic source code in C++ is it possible to let the user
Possible Duplicate: casting unused return values to void I read some source code, and
Possible Duplicate: A Java API to generate Java source files Is there a good
Possible Duplicate: “The breakpoint will not currently be hit. The source code is different

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.