Question or issue on macOS:
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?
This site requires JavaScript to be enabled. Jun 29, 2017 Go here to download Java JRE6 for OS X 2017-001; The download notes from Apple for that releases are as follows: Java for macOS 2017-001 installs the legacy Java 6 runtime for macOS 10.13 High Sierra, macOS 10.12 Sierra, macOS 10.11 El Capitan, macOS 10.10 Yosemite, macOS 10.9 Mavericks, macOS 10.8 Mountain Lion, and macOS 10.7 Lion. Link to How to install Java JDK on Mac OS X This Video tells you how to download Eclipse IDE for Mac OS X. In this tutorial, we. Download Java for OS X 2017-001 Java for macOS 2017-001 installs the legacy Java 6 runtime for macOS 10.13 High Sierra, macOS 10.12 Sierra, macOS 10.11 El Capitan, macOS 10.10 Yosemite, macOS 10.9 Mavericks, macOS 10.8 Mountain Lion, and macOS 10.7 Lion. Note that OS X 10.6 or newer is required as this feature relies on the open command's ability to pass on arguments. Eclipse IDE 3.7+ and Java 1.7 or better is also required. Issues are reported in GitHub and comments go to @torkildr.
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:
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).
Hope this helps!
Package Description
The essential tools for any Java developer, including a Java IDE, a CVS client, Git client, XML Editor, Mylyn, Maven integration and WindowBuilder
This package includes:
- Eclipse Git Team Provider
- Eclipse Java Development Tools
- Maven Integration for Eclipse
- Mylyn Task List
- Code Recommenders Tools for Java Developers
- WindowBuilder Core
- Eclipse XML Editors and Tools
- org.eclipse.cvs
- org.eclipse.egit
- org.eclipse.egit.import
- org.eclipse.egit.mylyn
- org.eclipse.epp.package.common.feature
- org.eclipse.equinox.p2.user.ui
- org.eclipse.help
- org.eclipse.jdt
- org.eclipse.jgit
- org.eclipse.m2e.feature
- org.eclipse.m2e.logback.feature
- org.eclipse.mylyn.bugzilla_feature
- org.eclipse.mylyn.context_feature
- org.eclipse.mylyn.cvs
- org.eclipse.mylyn_feature
- org.eclipse.mylyn.git
- org.eclipse.mylyn.hudson
- org.eclipse.mylyn.ide_feature
- org.eclipse.mylyn.java_feature
- org.eclipse.mylyn.wikitext_feature
- org.eclipse.platform
- org.eclipse.rcp
- org.eclipse.recommenders.rcp.feature
- org.eclipse.wb.core.feature
- org.eclipse.wb.core.ui.feature
- org.eclipse.wb.layout.group.feature
- org.eclipse.wb.swing.feature
- org.eclipse.wst.xml_ui.feature
Maintained by: Eclipse Mylyn Project
Windows x86_64
macOS 32-bit
Linux 32-bit
Linux x86_64
Windows 64-bit: MD5 - SHA1 - SHA512
Mac OS X (Cocoa) 32-bit: MD5 - SHA1 - SHA512
Mac OS X (Cocoa) 64-bit: MD5 - SHA1 - SHA512
Linux 32-bit: MD5 - SHA1 - SHA512
Linux 64-bit: MD5 - SHA1 - SHA512
Java Eclipse Download Mac Os X 10.13
Bugzilla
Bug ID | Title | Status |
516739 | Add WindowBuilder to Java package again | NEW |
513809 | [wiring] HttpComponents wiring issue | NEW |
509799 | Symantec reports a Trojan SONAR.AM.C!g24 in eclipse | NEW |
508091 | Duplicate options in Eclipse.ini | NEW |
521514 | Add 'Eclipse News' RSS feed to Java Package | NEW |
522649 | News feed plugin not installed on upgrade installs | NEW |
536469 | Use png with transparent icon in the about dialog of Java EPP (and others if applicable) | NEW |
530698 | Using weka api | NEW |
526611 | win64 version missing | NEW |
498457 | FileNotFoundException : org.eclipse.ui_3.108.0.v20160518-1929.jar | NEW |
489296 | Improve out-of-box experience for non-english locales | NEW |
386806 | New Eclipse Icon not used by Eclipse 4.2 on Windows 7 | NEW |
374170 | bugs when updating software | NEW |
364551 | setup automated tests for Java EPP package | NEW |
414381 | Failed to load the JNI shared library 'C:ogramFilesJavajre6binclientjvm.dll' | NEW |
458646 | Problème démarrage Eclipse | NEW |
355002 | EPP packages need styling | NEW |
473585 | Help system broken after updating from Luna to Mars | NEW |
487713 | FileNotFoundException: introData.xml | NEW |
382232 | Add 'EGit Import' to EPP package with EGit | ASSIGNED |
487722 | Dead link for 'Remote Help': Topic not found | REOPENED |
Bugs listed in italics indicate the bug has been moved to another project.
Bug ID | Title | Status |
382804 | Ctrl+C, Ctrl+V shortcuts don't work while editing Android XML | RESOLVED |
492163 | Add Maven to java package | RESOLVED |
383193 | Taskbar icon doesn't show Android build progress | RESOLVED |
490044 | [Welcome] Adopt Solstice theme for Java package | RESOLVED |
386686 | the Mobile package should include the Mylyn Bugzilla connector | RESOLVED |
365594 | add code recommenders to java package | RESOLVED |
358692 | Eclipse java package crash in Ubuntu 11.0.4 | RESOLVED |
356126 | fix Mylyn repository URLs in EPP packages for Indigo | RESOLVED |
356349 | update Mylyn URLs for Juno | RESOLVED |
357020 | add Mylyn Hudson/Jenkins connector to Java package | RESOLVED |
357332 | Annotations not shown on overview ruler | RESOLVED |
389113 | Unable to Launch Eclipse after download and setup: 'The Eclipse executable launcher was unable to locate its companion shared library.' | RESOLVED |
406246 | zip compression error | RESOLVED |
468598 | Mars RC1 Mac packages are damaged | RESOLVED |
535504 | Open file feature broken in Photon RC2 EPP packages | RESOLVED |
474204 | Include Buildship as part of Java package | RESOLVED |
534617 | [Photon] [java] Add Tip of the Day to the Java Package | RESOLVED |
528429 | m2e to download sources by default | RESOLVED |
194805 | add Error Log view to Java EPP distribution | RESOLVED |
432716 | Consider org.eclipse.recommenders.mylyn.rcp.feature for inclusion into Java package | RESOLVED |
483914 | bug | RESOLVED |
436206 | Re-enable Marketplace Client in Java Package | RESOLVED |
481475 | Scroll lock button being disabled | RESOLVED |
350079 | EGit should be by included in Java package | RESOLVED |
355058 | update repository locations for Juno | RESOLVED |
275767 | [Galileo M7] FileNotFoundException when updating Mylyn | RESOLVED |
275719 | [Galileo M7] packages do not have dropins folder | RESOLVED |
279203 | Add and enable Mylyn update site by default | RESOLVED |
281448 | [update] manager talking to update sites not available | RESOLVED |
549138 | Mylyn cannot be removed from Java IDE package | RESOLVED |
275558 | [Galileo M7] welcome view is not displayed on first startup | RESOLVED |
275523 | [Galileo M7] features appear twice in the about dialog | RESOLVED |
246466 | Missing/extra update sites when installing in either C:program file or C: | RESOLVED |
248976 | 'IDE for Java Developers' package is too restrictive by specifying Java 1.5 as required | RESOLVED |
275520 | [Galileo M7] package does not have any update sites | RESOLVED |
275521 | Improve branding for Galileo java package | RESOLVED |
297341 | EPP web page 'Download Milestone' link points to old builds | RESOLVED |
287566 | error on update after clean install | RESOLVED |
341705 | I tried to load the eclipse environment in Win Vista OS and got problems restoring workbench... | RESOLVED |
343869 | Add WindowBuilder Core and Swing to the Java package | RESOLVED |
346703 | Inclusion of m2e marketplace on help menu causing confusion | RESOLVED |
348157 | intrusive 'preview?' dialog on startup, from WindowBuilder | RESOLVED |
340312 | Indigo Java package logs lots of output | RESOLVED |
334180 | package contains duplicate (and modified?) bundles | RESOLVED |
313818 | Bugzilla connector does not load on Java 1.5 due to missing java.xml.bind bundle | RESOLVED |
306817 | Cannot update from M5 to Eclipse 3.6 M6 | RESOLVED |
311613 | java IDE / m6 / linux has an EclispeCon splash screen? | RESOLVED |
507104 | Include EclEmma in Java Package | RESOLVED |
507515 | Issue encountered when updating and reinstalling ABAP Development tools on NEON version. | CLOSED |
532067 | Open Bugs | CLOSED |
530726 | Mac OS X(Cocoa)64位下载连接无效 | CLOSED |
515622 | Eclipse will not run | CLOSED |
526343 | Constantly returning error message when opening the program | CLOSED |
501518 | Exception while updating external folders | CLOSED |
521654 | Getting error while starting Apache server | CLOSED |
529170 | MacOs didnt open the program | CLOSED |
548444 | The Java GUI is too big | CLOSED |
497204 | resource in project, but error says not open | CLOSED |
547604 | Can't Install software | CLOSED |
548562 | I am not able to update because of unfound repositories. | CLOSED |
550404 | sgfghg | CLOSED |
551635 | I can't run eclipse without having a bug on it. | CLOSED |
543464 | 2018-12 Installation Error | CLOSED |
543054 | Eclipse crashing while looking at files | CLOSED |
540168 | java 11 | CLOSED |
539041 | Unable to Install | CLOSED |
541760 | Missing Java Developer links for 2018-12 M3 | CLOSED |
542080 | Problems occurred when invoking code from plug-in: 'org.eclipse.ui.views.properties.tabbed'. | CLOSED |
543011 | java.io.FileWriter, the File cannot be deleted | CLOSED |
534760 | Simple compilation fails in Eclipse Oxygen.3a | CLOSED |
457081 | Add Error Reporting to Java Package | CLOSED |
435919 | Add 'Eclipse Code Recommenders' to 'This package includes' list | CLOSED |
435449 | Add org.eclipse.recommenders.snipmatch.rcp.feature to java-package | CLOSED |
436109 | update java package maintainer information | CLOSED |
455363 | Allow users to uninstall features from a package | CLOSED |
461540 | Unarchiving error | CLOSED |
414385 | the eclipsec executable launcher was unable to locate its companion shared library | CLOSED |
384532 | The Eclipse executable launcher was unable to locate its companion shared library | CLOSED |
330226 | Inclusion of m2e | CLOSED |
304968 | LinkageError when trying to use Eclipse to run (PDE) Ant scripts | CLOSED |
349028 | fix provider name for org.eclipse.wb.discovery.* | CLOSED |
353613 | Add EGit 1.1 to java-package | CLOSED |
381216 | Zip file for Java IDE RC1 package requires a password? | CLOSED |
464220 | Bug | CLOSED |
470912 | p2 can't find epp repo for Mars release | CLOSED |
482370 | thanks | CLOSED |
482285 | Mars.1 splash screen does not show progress bar after using console | CLOSED |
484535 | An error removing AppEngine from the project | CLOSED |
494695 | Didn't update from old version | CLOSED |
495806 | Suboptimal 'Visit' link on About Eclipse Features page | CLOSED |
480756 | Switch to root level features to allow users to remove unwanted features | CLOSED |
478619 | Webapp | CLOSED |
476546 | Eclipse Mars.1 RC2 for Java Developers includes CVS cheat sheets but no CVS support | CLOSED |
476553 | Installed Code Recommenders Snipmatch and Mylyn Integration features do not *show* under Installation Details | CLOSED |
477195 | Maintainer/tester information outdated | CLOSED |
477572 | p | CLOSED |
497192 | Eclipse Mars does not open in Windows 10 Pro | CLOSED |
Bugs listed in italics indicate the bug has been moved to another project.
File a Bug on this Package
New and Noteworthy
Eclipse PlatformEclipse Mylyn
EGit
Eclipse Code Recommenders