Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Running Applet on Web

 
Barry Myer
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9340
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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.


java.lang.ClassNotFoundException: javax.swing.JApplet
at com/ms/vm/loader/URLClassLoader.loadClass


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.
 
Barry Myer
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic