Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 51737 invoked from network); 24 Apr 2007 22:28:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Apr 2007 22:28:28 -0000 Received: (qmail 23897 invoked by uid 500); 24 Apr 2007 22:28:32 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 23862 invoked by uid 500); 24 Apr 2007 22:28:32 -0000 Mailing-List: contact dev-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list dev@harmony.apache.org Received: (qmail 23852 invoked by uid 99); 24 Apr 2007 22:28:32 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Apr 2007 15:28:32 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [206.191.52.61] (HELO foundation.eclipse.org) (206.191.52.61) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Apr 2007 15:28:24 -0700 Received: from MARVIN (unknown [212.94.238.52]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by foundation.eclipse.org (Postfix) with ESMTP id 67E792C88 for ; Tue, 24 Apr 2007 18:29:14 -0400 (EDT) From: "Wayne Beaton" To: Subject: Eclipse doesn't find harmony sources Date: Tue, 24 Apr 2007 18:27:49 -0400 Message-ID: <016d01c786bf$d21ed520$d2012b0a@MARVIN> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 Thread-Index: AceGv8pFhd75V/FnSEGt3Gemr8P6UQ== X-Virus-Checked: Checked by ClamAV on apache.org When you add a JRE to Eclipse, it scans the JRE's directory for JAR files. For each JAR file it finds, it looks for corresponding source. It does so by climbing up the containment hierarchy looking for a file named "src.jar" or "src.zip" (if you're curious, see org.eclipse.jdt.internal.launching.StandardVMType#getDefaultSystemLibrarySou rce()). Harmony JDK doesn't store is source this way (it seems to include the sources alongside the JAR files), so Eclipse doesn't find it (which means that if, for example, you browse the class java.lang.String, you get a "can't find the source" message in your editor). Is there a special reason why Harmony sources are represented the way they are? Is there any way to bundle 'em all up into a src.zip file? In a related question, I'm not sure that putting them in the "jre" directory is the right approach. I tend to think of the JRE directory as containing *only* the JRE (i.e. I could yank it out and use it as a JRE) and the sources--being part of the JDK--are outside of that directory. I also can't find the source for kernel.jar. Where is Object.java, Class.java, etc.? I can understand why you'd want to have the sources in different files. Eclipse handles J9 specially. It's probably time to generalize it's implementation to handle arbitrary source configurations (perhaps via extension point). Wayne -- Wayne Beaton The Eclipse Foundation wayne.beaton@eclipse.org Skype, YIM: waynebeaton http://www.eclipse.org http://wbeaton.blogspot.com/ http://www.planeteclipse.org/planet/