Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 59936 invoked from network); 24 May 2007 06:01:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 May 2007 06:01:34 -0000 Received: (qmail 70404 invoked by uid 500); 24 May 2007 06:01:37 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 70382 invoked by uid 500); 24 May 2007 06:01:37 -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 70373 invoked by uid 99); 24 May 2007 06:01:37 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 May 2007 23:01:37 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of alexey.v.varlamov@gmail.com designates 209.85.132.243 as permitted sender) Received: from [209.85.132.243] (HELO an-out-0708.google.com) (209.85.132.243) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 May 2007 23:01:31 -0700 Received: by an-out-0708.google.com with SMTP id b21so5407ana for ; Wed, 23 May 2007 23:01:10 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=g4DumuAC1pEYLi6Bb9LASaR50dNRL4nWFf+5VOkBRuFXWM8K9c1TWZ97aBBGaOLYJZGhjtS+QfER7wuDpeXTk1XvJpum2kJTda86E9SG/LtoqC0d8yGzWRSalT890M+W/NLKAE+/ktFnHNZurH50YVE2i/PFsBAj8NY8iDGJaJo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=lDSJ6AIKqNGK/sIkhmSRoLljoEI71/O4qvm6pYzAK+Sdyot8mvM6aG2+NdDkczXYZOXwv5JGTWJ6U8HsTmAIhDPk83XS5onmrVA0Cn3LEhBX8t6DRNtwusKddthyAPb7ADReCcxV86em2perXg+hKVrNuHxS/eTZU77omVspkao= Received: by 10.100.171.16 with SMTP id t16mr1288209ane.1179986470469; Wed, 23 May 2007 23:01:10 -0700 (PDT) Received: by 10.100.37.7 with HTTP; Wed, 23 May 2007 23:01:10 -0700 (PDT) Message-ID: Date: Thu, 24 May 2007 13:01:10 +0700 From: "Alexey Varlamov" To: dev@harmony.apache.org Subject: Re: ECJ and Harmony In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-Virus-Checked: Checked by ClamAV on apache.org 2007/5/23, Gregory Shimansky : > Olivier Thomann wrote: > > news wrote on 2007-05-23 11:37:09: > >> Olivier Thomann wrote: > >> Ah I was mistaken when I wrote that org.apache.harmony.boot.class.path > >> is the right property to be used. This property is created by classlib > >> initialization code and actually specifies all JAR files which classlib > >> has (kernel classes are VM specific). DRLVM adds kernel.jar to the > >> property and creates vm.boot.class.path and sun.boot.class.path, the > >> latter for compatibility with Sun. > > I could search for "sun.boot.class.path" first and if not present, use > > "vm.boot.class.path". > > Just small correction, if sun.boot.class.path is not found, search for > org.apache.harmony.boot.class.path. It is the only property that IBM VME > provides, and it has correct value for it. On DRLVM sun.boot.class.path > and vm.boot.class.path are equal and contain kernel.jar, while > org.apache.harmony.boot.class.path doesn't contain it (this should not > be a problem if you search for sun.boot.class.path first). Let's get rid of that duplicate "vm.boot.class.path" - org.apache.harmony.boot.class.path + sun.boot.class.path is more than enough. And to avoid confusion in future, re-initialize the first with the full bootclasspath in DRLVM as well. > > > Then this would not require any change in the Harmony properties. So as > > long as these > > properties are properly initialized, it should work fine. > > > > I'll preserve the current heuristic in case none of the properties is set. > > Sure. I wonder what IBM's J9 provides. I saw some code in eclipse which > reads com.ibm.oti.system.class.path property. But maybe it provides > sun.boot.class.path for compatibility too... > > > Does this sound good enough? > > Yes! > > [1] > http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.jdt.launching/support/org/eclipse/jdt/internal/launching/support/LibraryDetector.java?revision=1.9&view=markup > > -- > Gregory > >