harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Charles Lee <littlee1...@gmail.com>
Subject Re: The support for - jar -cp ?
Date Tue, 11 Aug 2009 07:31:18 GMT
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 <littlee1032@gmail.com> 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 <tian.galaxy@gmail.com> 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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message