aspose file tools*
The moose likes Applets and the fly likes Applet working on NS not on IE 6... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "Applet working on NS not on IE 6..." Watch "Applet working on NS not on IE 6..." New topic
Author

Applet working on NS not on IE 6...

Matthew Orral
Greenhorn

Joined: Jul 27, 2003
Posts: 11
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

Joined: Jul 27, 2003
Posts: 11
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

Joined: Jul 27, 2003
Posts: 11
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

Joined: Jul 08, 2003
Posts: 24187
    
  34

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.


[Jess in Action][AskingGoodQuestions]
Matthew Orral
Greenhorn

Joined: Jul 27, 2003
Posts: 11
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

Joined: Jul 29, 2003
Posts: 3
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

Joined: Jul 27, 2003
Posts: 11
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

Joined: Jun 06, 2002
Posts: 18
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

Joined: Nov 04, 2001
Posts: 1871
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Applet working on NS not on IE 6...