> Dear Friends,
>
> I know it is off the topics. But
> if
> any body can help me.
>
>
> I'm getting a InvocationTargetException on both
> Netscape and IE on Windows. Yet, it works perfectly
> on Netscape on Macintosh.
>
> Here's the code:
>
>
> try {
> Class c = Class.forName(
> "netscape.javascript.JSObject" );
> Method ms[] = c.getMethods();
> String methName = "";
>
> for( int i = 0 ; i < ms.length ; i++ ) {
> methName = ms[i].getName();
>
> if( methName.compareTo("getWindow") == 0 )
> mGetWindow = ms[i];
> else if( methName.compareTo("eval") == 0 )
> mEval = ms[i];
> }
>
> Object a[] = new Object[1];
> a[0] = theApplet;
>
> // This causes an InvocationTargetException on
> both
> Netscape and IE on Windows only (Mac Netscape OK)
> jsWindow = mGetWindow.invoke( c, a ); //
> JSObject
> jswin = (JSObject) JSObject.getWindow(this);
>
> bInitialized = true;
> }
> catch( java.lang.ClassNotFoundException cnfe ) {
> cnfe.printStackTrace();
> }
> catch( java.lang.IllegalAccessException iae ) {
> iae.printStackTrace();
> }
> catch( java.lang.reflect.InvocationTargetException
> ite ) {
> ite.printStackTrace();
> }
>
>
>
> Thanks
> for all the help
> Zabid
>
>
> __________________________________________________
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail
> http://personal.mail.yahoo.com/
__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html