These platform-specific issues actually have some relevance to
servlets since servlets can provide help to the applet in
working with different platforms. (However, an applet-interest
group might be more helpful).

Did you look to see what ite.getTargetException() returns ?

Are you trying to invoke getWindow(Applet) on
(an instance of) Class or do you want to invoke 
getWindow (on some instance )of  netscape.javascript.JSObject?

If I had to guess based on the exception you report, 
I would suspect that the method you are trying
to invoke is actually encountering some platform-specific issue
that it isn't handling properly. 

Let me know what you find.
Thanks,

Mike Marchywka
Senior Engineer
EyeWonder
2859 Paces Ferry Road
Suite 1200
Atlanta GA 30339
770-261-5084(W)
770-434-7510(H)
FAX: 770-261-5080
[EMAIL PROTECTED]
 

-----Original Message-----
From: Aashish Kaushik [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 11, 2001 12:00 AM
To: [EMAIL PROTECTED]
Subject: Re: java / javascript applet problems


hello friend,
the problem you quoted may have been arise out of the browser specific
package problem,
as you are using netscape packages so that might not work with IE.
the code you are writing is not valid for all browsers but will only
work
for netscape..
so check that out...
and reply me back
Aashish Kaushik
www.jilit.com
TEL : 0120-4777881(Extn. 2390)
E-MAIL:[EMAIL PROTECTED]




> 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

________________________________________________________________________
___
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

___________________________________________________________________________
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

Reply via email to