I have written an applet and I have changed the security permission for
acceding on client's files. (I use netscape.security)
My applet work very well with appletviewer but I can't have it on
Netscape.
I receive this error message :
Netscape Communications Corporation -- Java 1.1.2
Type '?' for options.
.
# Applet exception: error: java.lang.NoSuchMethodError:
java.awt.Component: method setSize (II)V not found
java.lang.NoSuchMethodError: java.awt.Component: method setSize (II)V
not found
at Recherche_Image.init(Recherche_Image.java:1215)
at netscape.applet.DerivedAppletFrame.run(DerivedAppletFrame.java)
at java.lang.Thread.run(Thread.java)
As you see my Netscape version know jdk 1.1.2 but on the other way it
can't find the methode setSize().
Can someone help me.
Thanks a lot.
Mehrva
Mehrva RABII wrote:
> Hi,
>
> I have written an applet and I have changed the security permission for
> acceding on client's files. (I use netscape.security)
> My applet work very well with appletviewer but I can't have it on
> Netscape.
>
> I receive this error message :
>
> Netscape Communications Corporation -- Java 1.1.2
> Type '?' for options.
> .
> # Applet exception: error: java.lang.NoSuchMethodError:
> java.awt.Component: method setSize (II)V not found
> java.lang.NoSuchMethodError: java.awt.Component: method setSize (II)V
> not found
> at Recherche_Image.init(Recherche_Image.java:1215)
> at netscape.applet.DerivedAppletFrame.run(DerivedAppletFrame.java)
> at java.lang.Thread.run(Thread.java)
>
> As you see my Netscape version know jdk 1.1.2 but on the other way it
> can't find the methode setSize().
>
> Can someone help me.
>
> Thanks a lot.
>
> Mehrva
>
Mehrva,
Netscape, before v4.05, has only a partial implementation
of JDK1.1. The part lacking, unfortunately, is AWT. There
are some ways of working around this, though. In this instance
you need only call the JDK1.02 resize() method instead of
1.1's setSize(). If your applet has listeners, it may take more work
to convert them to 1.02 events, but it can be done.
Another way is to expect the users to have NS4.05+ and
IE4.0+ or even the Java Plugin, so you can be assured of
a 1.1 environment.
Bob
Kevin.