This is the mail archive of the kawa@sources.redhat.com mailing list for the Kawa project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Parameter passing to Java Program using Kawa


At 07:55 PM 11/29/2001 +0530, Nikhil Gaikwad wrote:
>How do I pass parameters to a Java Program while running it through Kawa
>...

You will find the variable "command-line-arguments" in the Kawa docs under 
the Extensions:Miscellaneous section.  It will contain the parameters that 
are not already processed by Kawa (that following "-e, -c, -f, -s, --, -w, 
or --server).

http://www.gnu.org/software/kawa/kawa_8.html#SEC51

So if you start with:
    java -jar kawa.jar -- Hello
then:
    (write command-line-arguments)
will output:
    #("Hello")

jim

----------------------------------------------------------------
James P. White                 Netscape DevEdge Champion for IFC
IFC Exchange   *   Insanely great Java   *   http://www.ifcx.org
jim@pagesmiths.com Pagesmiths' home is http://www.pagesmiths.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]