gajo said:
So what am I doing wrong? Is it that I have compiled with Java 1.4.1? I've
also uploaded the files on another web space provider, and it didn't work
there either.
I think that the classfile itself is OK, but that the problem is that you have
used some inner classes in your applet. Those classes get compiled into extra
..CLASS files and you have to upload them to the server too. You should find
files called reci$1.class, reci$2.class, and reci$3.class on your local drive
and those are the ones that are missing from the server.
However, I don't know if that will be enough to get your example working in all
browsers. If you are compiling for a Java 2 platform then I don't think the
applet will work in Internet Explorer if you are just using the old-style
"applet" tag (since it'll run on MS's old JVM rather than the Sun plugin).
Sun's tutorials should have examples of how to tell browsers how to use the
Java plugin. That should give you examples of how to package an applet with
several .CLASS files into a single .JAR file too.
-- chris