Works in Applet viewer but not IExporer
I have a problem since my applet compiles fine in Applet Viewer but when I try to run it in MS Internet Explorer nothing seams to happen instead I get this message in the applet consol whenever I try to click on something:
Exception occurred during event dispatching:
java.lang.NoSuchMethodError: java/util/Vector: method set(ILjava/lang/Object;)Ljava/lang/Object; not found
at applet.actionPerformed (applet.java)
at java/awt/Button.processActionEvent (Button.java)
at java/awt/Button.processEvent (Button.java)
at java/awt/Component.dispatchEventImpl (Component.java)
at java/awt/Component.dispatchEvent (Component.java)
at java/awt/EventDispatchThread.run (EventDispatchThread.java)
What on earh does this mean.
I'm using Java version 1.2 and I'm running it (or attempting to) run it on a NT computer.
rshearer@computing.dundee.ac.uk
# 2 Re: Works in Applet viewer but not IExporer
Its not the probem with the Classpath.
Actually problem is that you are using set(int,Object) method of Vector which is found only in JDK1.2. You IE doesn't support JDK1.2
So for this you have to install Java Plugin which makes IE latest version to support JDK1.2.
Or u need to install JRE in your machine. Apart from that u need to convert your HTML in such a way that your browser recognizes it and applet will be loaded.
For html converison you need a HTML Convertor or If u know about the <Object> tag, then u can go ahead.Because U have to use this tag.
Hope this will help u. If you need help on this mail me.
regards,
arun...
# 3 Re: Works in Applet viewer but not IExporer
U can't run applet written using JDK1.2 without JDK1.2 plug-in.
IE4.0 supports JDK1.1.5 so when u tried to run code written in JDK1.2, it didn't find the specified method (obviously as it is only in JDK1.2).
For running the applet written in JDK1.2 there is a separate method. U will have to download JDK1.2 plug-in. And then u will have to execute the applet using 'object' tag. U can get detailed information at java.sun.com
- UnicMan
http://members.tripod.com/unicman