| Author |
Running Applet on Web
|
Barry Myer
Greenhorn
Joined: Oct 31, 2004
Posts: 7
|
|
My applet works fine on the appletviewer but when I try to run it on the browser it doesn't work. The java console shows the following: Microsoft (R) VM for Java, 5.0 Release 5.0.0.3805 ============================================== ? help c clear f run finalizers g garbage collect m memory usage q quit t thread list ============================================== com.ms.security.SecurityExceptionEx[Host]: java.io.IOException: bad path: C:\oracle\ora92\jdk\bin\javax\swing\JApplet.class at com/ms/security/permissions/FileIOPermission.check at com/ms/security/PolicyEngine.deepCheck at com/ms/security/PolicyEngine.checkPermission at com/ms/security/StandardSecurityManager.chk at com/ms/security/StandardSecurityManager.checkRead at java/io/File.isDirectory at sun/net/www/protocol/file/FileURLConnection.connect at sun/net/www/protocol/file/FileURLConnection.getInputStream at com/ms/vm/loader/ResourceLoader.getURLData at com/ms/vm/loader/ResourceLoader.getCodebaseRelativeData at com/ms/vm/loader/ResourceLoader.getClassData at com/ms/vm/loader/URLClassLoader.findClass at com/ms/vm/loader/URLClassLoader.loadClass at java/lang/ClassLoader.loadClassInternal at java/lang/ClassLoader.resolveClass 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 java.lang.ClassNotFoundException: javax.swing.JApplet at com/ms/vm/loader/URLClassLoader.loadClass at java/lang/ClassLoader.loadClassInternal at java/lang/ClassLoader.resolveClass 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 java.lang.ClassNotFoundException: javax.swing.JApplet at com/ms/vm/loader/URLClassLoader.loadClass at java/lang/ClassLoader.loadClassInternal at java/lang/ClassLoader.resolveClass 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 did install a HTML converter. What does this all mean.
|
 |
Joe Ess
Bartender
Joined: Oct 29, 2001
Posts: 8290
|
|
com.ms.security.SecurityExceptionEx[Host]: java.io.IOException: bad path: C:\oracle\ora92\jdk\bin\javax\swing\JApplet.class
That means that your applet is attempting to access a file, but the applet security model is preventing it (applets can't read files off the local system, more on security restrictions here). The lines which follow tell you where that exception occurred.
This means that the class javax.swing.JApplet cannot be found. I see you are using the MS Java VM. Its primitive compared to the Java 1.4 and 1.5 JVM's, and will not have newer features like Swing, Collections and so on. If you haven't, install the JRE or JDK, then go to your computer's control panel, click on the Java Plug-In icon, select the "Browser" tab and check the box to make the new JVM the default for IE.
|
"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
|
 |
Barry Myer
Greenhorn
Joined: Oct 31, 2004
Posts: 7
|
|
Thank you very much Joe When I try to run the applet on my home pc, the applet starts to load but then it stalls with the status reading 'Applet Loading. . .'. The java console only shows: Microsoft (R) VM for Java, 5.0 Release 5.0.0.3805 ============================================== ? help c clear f run finalizers g garbage collect m memory usage q quit t thread list ============================================== I realize this is the same older version. Do I really need to get the latest version of Java JVM? Another applet using swing was able to load onto the browser. If I get the latest version, does it come in CD rom form because I've been having trouble downloading lately?
|
 |
 |
|
|
subject: Running Applet on Web
|
|
|