Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 18206 invoked from network); 11 Aug 2009 08:33:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 11 Aug 2009 08:33:41 -0000 Received: (qmail 88398 invoked by uid 500); 11 Aug 2009 08:33:48 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 88314 invoked by uid 500); 11 Aug 2009 08:33:47 -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 88303 invoked by uid 99); 11 Aug 2009 08:33:47 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Aug 2009 08:33:47 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of tian.galaxy@gmail.com designates 209.85.222.197 as permitted sender) Received: from [209.85.222.197] (HELO mail-pz0-f197.google.com) (209.85.222.197) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Aug 2009 08:33:39 +0000 Received: by pzk35 with SMTP id 35so3570268pzk.24 for ; Tue, 11 Aug 2009 01:33:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=teGlv1FqB2lHLwZsU6F0o4WivnYA5mYH3ZB9bQMI2/s=; b=PACg9BgJAvaOulZ/bU0BYbYAF1mpbKfAVDDhyJ1RXXiZNe28969oMyuObR55tTiydI CDlVHC7XPUJi9dk2aRsGiQHxTjunA5yaMmPetN1Kk/om82p/ebPqyyMKPmerbTqBj+/D FM3FTPihp5B9wzqGyJYVCxtmg8nmXTZ4DmCuk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=nuFFLFtKnPR2eZjs030Ag42zU1jnWUwtpZH3Gmbt8nhoeM54WTEGgiK6W8mMpUVDqb WdhiqCxcN2HejUih0xKrcrqe3jvA0m7dwpsR5MCKPpNb8UGEpl7FSDKrOK8MuXPkDmpO e3DCb96vW66iSX2krzdPNd485fnC06rF5YPTE= MIME-Version: 1.0 Received: by 10.142.187.6 with SMTP id k6mr725928wff.50.1249979599544; Tue, 11 Aug 2009 01:33:19 -0700 (PDT) In-Reply-To: <5948b71e0908110031u3797f984w928b5b5b1fce0113@mail.gmail.com> References: <5948b71e0908110030y6c5448a9h1fad34731236ca5c@mail.gmail.com> <5948b71e0908110031u3797f984w928b5b5b1fce0113@mail.gmail.com> Date: Tue, 11 Aug 2009 16:33:19 +0800 Message-ID: Subject: Re: The support for - jar -cp ? From: galaxy To: dev@harmony.apache.org Content-Type: multipart/alternative; boundary=000e0cd2dda001e40a0470d98e21 X-Virus-Checked: Checked by ClamAV on apache.org --000e0cd2dda001e40a0470d98e21 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Thanks 2009/8/11 Charles Lee > It seems you should include all the classes and jars in the jar file. > > On Tue, Aug 11, 2009 at 3:30 PM, Charles Lee > wrote: > > > Hi galaxy, > > > > Here is what I found using man java: > > -jar: When you use this option, the JAR file is the source of all user > > classes, and other user class path settings are ignored. > > > > > > On Tue, Aug 11, 2009 at 2:40 PM, galaxy wrote: > > > >> Hi all > >> I am working to support -jar in my work ,but it is always unable to find > >> the > >> classes specified in the -cp xxx, > >> I happened to notice there is a line in native/launcher/shared/main.c in > >> the > >> createVMArgs > >> /* Ignore classpath defines for -jar */ > >> /* XXX -cp is accepted ??? */ > >> > >> So how should I do to include my classpath when using -jar ? > >> The -DDjava.class.path seems not useful too . > >> -- > >> regards > >> Tian > >> > > > > > > > > -- > > Yours sincerely, > > Charles Lee > > > > > > > -- > Yours sincerely, > Charles Lee > -- regards Tian --000e0cd2dda001e40a0470d98e21--