Class loading

[email protected] Thu, 19 Aug 2010 10:05:56 +0530
Newsgroups gmane.comp.java.beanshell.devel
Message-ID <OF0DE32933.92F969C6-ON65257784.00184C6E-65257784.001943AE@inautix.co.in>
This is a multipart message in MIME format.
--===============3397155304701411644==
Content-Type: multipart/alternative;
	boundary="=_alternative 001943A665257784_="

This is a multipart message in MIME format.
--=_alternative 001943A665257784_=
Content-Type: text/plain; charset="US-ASCII"

Hei, 

Interpreter i = new Interpreter();
i.eval("String s = new String(\"Hello World!\");");

In the above Java statement i wish to know how the beanshell invokes the 
class "String" without its package being specified. How does it associates 
the namespace.

I have a small requirement like this, to dynamically invoke simple Java 
statements and invoke Java classes dynamically. I have a small interpreter 
developed for this. As the requirement is urgent, although i had read few 
sources of beanshell i would like to get the answer from the experienced 
than by finding all my myself.

Thanks

V
--=_alternative 001943A665257784_=
Content-Type: text/html; charset="US-ASCII"


<br><font size=2 face="sans-serif">Hei, </font>
<br>
<br><font size=2 face="Courier New">Interpreter i = </font><font size=2 color=#820040 face="Courier New"><b>new</b></font><font size=2 face="Courier New">
Interpreter();</font>
<br><font size=2 face="Courier New">i.eval(</font><font size=2 color=#4200ff face="Courier New">&quot;String
s = new String(\&quot;Hello World!\&quot;);&quot;</font><font size=2 face="Courier New">);</font>
<br>
<br><font size=2 face="sans-serif">In the above Java statement i wish to
know how the beanshell invokes the class &quot;String&quot; without its
package being specified. How does it associates the namespace.</font>
<br>
<br><font size=2 face="sans-serif">I have a small requirement like this,
to dynamically invoke simple Java statements and invoke Java classes dynamically.
I have a small interpreter developed for this. As the requirement is urgent,
although i had read few sources of beanshell i would like to get the answer
from the experienced than by finding all my myself.</font>
<br>
<br><font size=2 face="sans-serif">Thanks</font>
<br>
<br><font size=2 face="sans-serif">V</font>
--=_alternative 001943A665257784_=--


--===============3397155304701411644==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
--===============3397155304701411644==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Beanshell-developers mailing list
Beanshell-developers-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/beanshell-developers

--===============3397155304701411644==--