I have been trying to open a word document from an applet I took from this forum. I'm using the oracle jdeveloper10g and if I run it using the appletviewer it works right, but if I use the embedded oc4j server or deploy it to the tomcat server, I get this message in the status bar:"class WriteClientApplet not found" and the message in the server window in the jdeveloper shows the following:
java.lang.ClassNotFoundException: WriteClientApplet at com/ms/vm/loader/URLClassLoader.loadClass at com/ms/vm/loader/URLClassLoader.loadClass at com/ms/applet/AppletPanel.securedClassLoad at com/ms/applet/AppletPanel.processSentEvent at com/ms/applet/AppletPanel.processSentEvent at com/ms/applet/AppletPanel.run at java/lang/Thread.run
I've tried everything, using the same folder for the class and the html page, using codebase... I don't know what else can I do.
The several subdirectories look weird to me, and potentially troublesome, but if the server serves the HTML at that address, then the JVM should find the class. Can you download the class manually, i.e. by copying the link you provided into the browser? Just to make sure that there isn't a permissions problem on the server.
Joined: Dec 21, 2005
You were right, it was the microsoft virtual machine. I have installed the JRE 1.4.2_10 and now another simple applets that had the same problem execute properly. Now displays a message (in oc4j) saying "../classes/WriteClientApplet applet notinited" (../classes/ must be the path so the server can find the applet), and in Tomcat the message is "subprogram WriteClientApplet started", nevertheless it doesn't open the word document, so I think that the next step must be signing the applet as you said before, I'll write if I'm in trouble.
Thanks for the replies, best regards, Michael. [ January 04, 2006: Message edited by: Michael Celaya ]
Joined: Mar 22, 2005
The applet is not even initializing properly, so there seems to be another problem.
Where does this
come from? The URLs you posted above do not contain a "classes" directory, nor does the applet tag. You can't keep applet classes in the WEB-INF/classes directory - the JVM will not be able to get at those.
Joined: Dec 21, 2005
Well, the directory in my oc4j server is different to the one located in Tomcat. The folders in a workspace in jdeveloper has a classes folder at the same level of public_html(where the html page is). But I've also solved this problem: the jar file must be in the public_html folder, and that's it. I've also signed the jar file with my own key par and now it works.