None of the internal commands work

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

None of the internal commands work

Rock Lobster
Hello,

I tried to use BeanShell for the first time today, and I saw there are some "internal commands" like addClassPath() or cd() or exec(), but whichever I try, I always get the same error:

Error: EvalError: Command not found

What am I doing wrong here?
Thanks in advance
Reply | Threaded
Open this post in threaded view
|

Re: None of the internal commands work

David Lee
did you try using them with the right arguments ? like

cd("/")

does even "print" work ? like

print(1);



----- Original Message -----
From: "Rock Lobster" <[hidden email]>
To: <[hidden email]>
Sent: Wednesday, September 12, 2007 6:47 AM
Subject: [Beanshell-users] None of the internal commands work


>
> Hello,
>
> I tried to use BeanShell for the first time today, and I saw there are
> some
> "internal commands" like addClassPath() or cd() or exec(), but whichever I
> try, I always get the same error:
>
> Error: EvalError: Command not found
>
> What am I doing wrong here?
> Thanks in advance
> --
> View this message in context:
> http://www.nabble.com/None-of-the-internal-commands-work-tf4428714.html#a12633753
> Sent from the BeanShell - User mailing list archive at Nabble.com.
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> Beanshell-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/beanshell-users
>


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Beanshell-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beanshell-users
Reply | Threaded
Open this post in threaded view
|

Re: None of the internal commands work

Alexey Zinger
In reply to this post by Rock Lobster
Make sure you have a distribution of BeanShell that contains commands and not
just the interpreter engine.

--- Rock Lobster <[hidden email]> wrote:

>
> Hello,
>
> I tried to use BeanShell for the first time today, and I saw there are some
> "internal commands" like addClassPath() or cd() or exec(), but whichever I
> try, I always get the same error:
>
> Error: EvalError: Command not found
>
> What am I doing wrong here?
> Thanks in advance
> --
> View this message in context:
>
http://www.nabble.com/None-of-the-internal-commands-work-tf4428714.html#a12633753

> Sent from the BeanShell - User mailing list archive at Nabble.com.
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> Beanshell-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/beanshell-users
>


Alexey
2001 Honda CBR600F4i (CCS)
1992 Kawasaki EX500
http://azinger.blogspot.com
http://bsheet.sourceforge.net
http://wcollage.sourceforge.net



      ____________________________________________________________________________________
Shape Yahoo! in your own image.  Join our Network Research Panel today!   http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7 



-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Beanshell-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beanshell-users