Question or issue on macOS:
Under Oracle Java, only a single version of the JRE can be installed at a time. See Installing the JRE on macOS. To access the Java Control Panel, in the System Preferences panel, click the Java icon. If you don’t see the Java icon in the System Preferences, in the Other section, then you do not have an Oracle. Get Java for your Mac Download Java for OS X directly from Oracle. Get the latest version If an app or webpage you want to use asks you to install Java software, you can download the current version of Java for OS X directly from Oracle's website.
Java for Mac OS X 10.6 Update 3 upgraded to java 1.6.0_22. However, they did not include the source code or JavaDoc. Does anyone know if Apple provides the source, and if so, where to find it?
Free mind download mac. I’d like to attach the source to Eclipse.
How to solve this problem?
Solution no. 1:
I had the same problem today – I installed the Java Developer package from http://connect.apple.com, but couldn’t find “src.jar” in /System/Library/Frameworks/JavaVM.framework/..
anymore. On my machine, it’s now
in/Library/Java/JavaVirtualMachines/1.6.0_22-b04-307.jdk/Contents/Home/src.jar
.
Update: For the latest version from March 2011, the jar is now:/Library/Java/JavaVirtualMachines/1.6.0_24-b07-334.jdk/Contents/Home/src.jar
Once again, you’ll have to download the new Java Developer package first.
Solution no. 2:
What I do is as follows:
Download and install the Java Developer Kit (using your developer AppleId), current version 1.6.0_24-b07-334.jdk
, and then in a shell, cd to the /System/Library/Frameworks/JavaVM.framework/Home
directory.
Put in symbolic links to the jdk source files, src.jar
, docs.jar
and appledocs.jar
, in the jdk you’ve just downloaded, that is:
sudo ln -s /Library/Java/JavaVirtualMachines/1.6.0_24-b07-334.jdk/Contents/Home/src.jar src.jar
and similarly for the other two jars.
Then, in Eclipse/Preferences, you can create a new Installed JRE by duplicating the existing one (the existing one points to something like /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
) and then select the new Installed JRE and remove the original.
The Eclipse Projects might need updating to point to the ‘new’ JRE, but the source and javadocs should now be available for the standard java stuff without further ado.
NB Ensure that the version of the jdk matches the version of your system Java for this to work properly.
Solution no. 3:
Install java source, docs in 8 steps:
Sign in with your Apple ID (http://connect.apple.com)
Go to https://developer.apple.com/downloads/index.action
Download Java for OS X 2012-00* Developer Package
Install javadeveloper_for_os_x_ * .dmg.
Go to Eclipse > Preferences > Java > Installed JRE
Click Search…
Choose JRE with location like /Library/Java/JavaVirtualMachines/
1.6.0_your_jdk_filename.jdk
/contents/home. In my case jdk file name was1.6.0_33-b03-424.jdk
.You can find the file name of jdk in terminal:
ls -l /Library/Java/JavaVirtualMachines
Now, when you try “open declaration” and get message “Source Not Found” press button Attach source… and paste /Library/Java/JavaVirtualMachines/
1.6.0_your_jdk_filename.jdk
/contents/home/src.jar
Solution no. 4:
These are the exact steps that worked for me.
Go to the apple dev java downloads page and get the latest one you can (the apple dev web site will not let you download packages that are unsuitable for your OS version).
I installed Java Developer Package for Mac OS X 10.6 Update 5 (Disk Image).
Then I executed these commands:
Then I restarted Eclipse (I didn’t have to create a new JRE).
Solution no. 5:
You may also need to install the Java Developer Update: http://developer.apple.com/library/mac/releasenotes/Java/JavaSnowLeopardUpdate3LeopardUpdate8RN/NewandNoteworthy/NewandNoteworthy.html
Solution no. 6:
Found it also not working after download and installation. Using the directory didn’t work either for me. This helped finally:
Get drivers and downloads for your Dell Dell P2418D. Download and install the latest drivers, firmware and software. I just picked up the new MacBook 13 inch w/ M1! I have 2 Dell P2419H monitors, which I use for work with my Dell latitude. I want to use the same set up for my MacBook as well. Currently the Dell WD15 dock is running the show and I understand that this dock won't support the MacBook. DELL 2007FP MONITOR DRIVERS FOR MAC. Intelr hd graphics. Driver management tool, macbook pro retina, dell u3011 monitor free. Displays, dell 2007fp driver version a00, free. Worst buy monday. I am looking for a new monitor. Must have features: 1. Compatible with MacBook Pro (13' 2019) and also MacBook Pro (15' 2018) 2. Be able to support USB Type-C (Charging MacBook Pro from the monitor) 3. Have HDMI input 4. USB hub (connect USB Devices to monitor, e.g. Keyboard, other things I want. Apple monitors for macbook pro. 450 drivers total Last updated: Aug 16th 2018, 02:45 GMT RSS Feed. Latest downloads from DELL in Monitor. Sort by: last update. Dell Latitude E6430s E2210 Monitor Driver A00 for Windows 7 64-bit 194 downloads. Windows 7 64 bit.
and the linked it through eclipse!
Solution no. 7:
I found that the solutions were not working for me (not sure what I am doing wrong), but I was able to see the source in Eclipse when I selected the directory of src.jar
instead of specifying the actual jar.
Solution no. 8:
FYI; On a Macbook Pro 2008, however reinstalled from scratch with Lion and NetBeans 7.0.1, thus the package Java 10.7 update 1 (the latest release), the source and JavaDoc were luckily auto installed after downloading the developer package as described in this thread. All is well.
Solution no. 9:
For OSX 10.7 Lion running Java update 1, I found the sources to be in: /Library/Java/JavaVirtualMachines/1.6.0_29-b11-402.jdk/Contents/Home/src.jar. As noted in the other answers, you will first need to download and install the Java Developer package from Apple before setting this directory in your IDE.
Solution no. 10:
On 31-Jan-2012, Apple posted the Java for Mac OS X Developer Preview 11M3614+10M3614 on their developer site.
This is a version that includes source code, doc, etc. (i.e., everything a developer needs).