Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Applet working on NS not on IE 6...

 
Matthew Orral
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Under NS the applet works fine but under IE 6 i got the following message from the Microsoft VM console :
com.ms.security.SecurityExceptionEx[Davidson.<init>]: java.io.IOException: bad path: C:\WINDOWS\Java\lib\swing.properties
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/FileInputStream.<init>
at java/io/FileInputStream.<init>
at javax/swing/UIManager$3.run
at javax/swing/SwingUtilities.doPrivileged
at javax/swing/UIManager.loadSwingProperties
at javax/swing/UIManager.initialize
at javax/swing/UIManager.maybeInitialize
at javax/swing/UIManager.getUI
at javax/swing/JPanel.updateUI
at javax/swing/JPanel.<init>
at javax/swing/JPanel.<init>
at javax/swing/JRootPane.createGlassPane
at javax/swing/JRootPane.<init>
at javax/swing/JApplet.createRootPane
at javax/swing/JApplet.<init>
at Davidson.<init>
at com/ms/applet/BrowserAppletFrame.newInstance
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.NoSuchMethodError: java/util/Vector: method add(Ljava/lang/Object Z not found
at Davidson.init
at com/ms/applet/AppletPanel.securedCall0
at com/ms/applet/AppletPanel.securedCall
at com/ms/applet/AppletPanel.processSentEvent
at com/ms/applet/AppletPanel.processSentEvent
at com/ms/applet/AppletPanel.run
at java/lang/Thread.run
I don't know if the problem could be in the rt.jar used by windows because
it complains about java.util.vector.
Thanks in advance.
 
Matthew Orral
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok, when i set the java plugin 1.4.1 to be used as runtime with IES, it works fine, so maybe under Microsoft VM runtime , you must handle security throught the com.ms.security package.
 
Matthew Orral
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
While searching where the com.ms.* packages ara, I've noticed that c:\windows\java\lib path doesn't even exist.
So, what does all this mess means? Perhaps a bad MS VM configuration, or classpath por MS VM packages, classes,etc...?
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24211
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Vector error is because the MS version of Vector is going to be from the JDK 1.1 era, before the "add()" method existed.
The security problems are interesting. You've got javax.swing classes on the stack; this must be one of the Swing "backports" that allowed it to run on older JDKs? In any case, it's the Swing class that's trying to open that file, and the MS security class is denying permission; there seems to be a disagreement between the two about what should be allowed here.
The MS VM is very out of date, and broken in quite a few ways; this is par for the course. Using the plug-in is much smarter.
 
Matthew Orral
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks man, you are right, the version of the jdk that MS VM was using was very out of date so i've kicked all that shit of MS VM, now i use java plugin
 
chris wong
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i'm just trying out applets, and i made my hello world, and it also only works on netscape and not ie.
public class HelloWorld extends Applet {
public void paint(Graphics g) {
// Display "Hello World!"
g.drawString("Hello world!", 50, 25);
}
}
that's all it is? is there any way i can make it work on ie?
 
Matthew Orral
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't know exactly what's your problem right there, try pasting the java console output.
But, if you're not using java plugin, use it as ie jre and try running again the applet...
 
Chaitanya Reddy
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello ..
My applets run in IE but not in netscape.What should I do to make them work in netscape..
thanks
chaitu
 
Maulin Vasavada
Ranch Hand
Posts: 1873
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi chaitanya
u using OBJECT tag to embed applet in the browser? please specify more details about ur applet html file etc and the error u get so that we can have better idea
if u r using OBJECT tag to embed the applet in the browser than it'd not work with netscape as netscape can't recognize OBJECT tag. use EMBED tag. google on how to use the EMBED tag for netscape ( with java plug-in thing you know) and u shd be able to find sth...
regards
maulin
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic