Make sure you're referencing bsh.args array variable to get at the command line parameters.

2001 Honda CBR600F4i (CCS)
1992 Kawasaki EX500

--- On Wed, 6/4/08, Dave Pawson <> wrote:
From: Dave Pawson <>
Subject: [Beanshell-users] New user, stuck on comand line parameters
Date: Wednesday, June 4, 2008, 6:12 AM

I have a java class which I've moved to bsh easily.

I'm stuck getting parameters to it (argv[x])

$java -cp bsh.jar myscript.bsh param1
seems to be indicated at

I'm unsure if I should be using a
public static void main()
in my code (I couldn't get it to work).

No example found in archive or documentation?

Any help appreciated.


Dave Pawson

Check out the new Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
Beanshell-users mailing list