Thank Derek and Bye for useful information.

I am really frustrated with Java3D Applet. I am using Win98, JDK1.2.1,
Java3D 1.1.1. When I run the Demo (HelloUniverse) in Netscape4.51, I got the
error message:

------------------------------------------------------------------------
Applet HelloUniverse class HelloUniverse got a security violation: method
verification error.
------------------------------------------------------------------------

After I converted the HTML file (HelloUniverse.html) by using HTMLConverter
and installed Java Plug-in (JRE version 1.2.1), I finally can run Java3D
applet in Netscape (Not in IE).
However, when I published the HTML file to the Personal Web Server on my PC
and visit from other PC, the HelloUniverse applet was notinited. I got the
following re message from Java Plug-in Console:

------------------------------------------------------------------------
java.lang.ClassFormatError: javax/media/j3d/Group (Bad magic number)
 at java.lang.ClassLoader.defineClass0(Native Method)
 at java.lang.ClassLoader.defineClass(ClassLoader.java:403)
 at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:101)
 at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:144)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:280)
 at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:110)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:237)
 at java.lang.Class.newInstance0(Native Method)
 at java.lang.Class.newInstance(Class.java:239)
 at sun.applet.AppletPanel.createApplet(AppletPanel.java:532)
 at sun.plugin.AppletViewer.createApplet(AppletViewer.java:759)
 at sun.applet.AppletPanel.runLoader(AppletPanel.java:468)
 at sun.applet.AppletPanel.run(Compiled Code)
 at java.lang.Thread.run(Thread.java:479)
------------------------------------------------------------------------

Is there anyone who has the same problem? Could someone tell me how to solve
them?

Thanks

Yi Zhuang





Hi !
Another solution could be, that Netscape cannot find the correct
Application to the file.
In a UNIX System the File Magic Number is used to identify the
type of a file (lib, picture, move, etc.).
I think you should check which application in Netscape is assigned
to the MIME type (e.g. HTML/text) .

Bye Erik



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Derek
Molloy
Sent: Wednesday, April 28, 1999 4:41 AM
To: Yi Zhuang; 'java3d'
Subject: RE: [java3d] What's Bad Magic Number?


Bad Magic Number -

I think that's to do with the UNIX permissions of your
.class files on the server.. make sure they are visible
and readable to the user that runs the web server
(usually the user nobody).....

Derek.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Yi Zhuang
Sent: Tuesday, April 27, 1999 10:33 PM
To: 'java3d'
Subject: [java3d] What's Bad Magic Number?


Hi, everyone:
Finally I can run Java3D applet in Netscape on my computer(After installing
Plug-in). However, when I visit the WebPages from other computer, the Java3D
applet is notinited. The error message disappeared so quick that I can only
recognize:

"...Canvas3D (Bad Magic Number) ".

Could someone please tell me how to solve the problem, and how to view the
error message on the status line of Netscape?

=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 3D Home Page: http://java.sun.com/products/java-media/3D/

=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 3D Home Page: http://java.sun.com/products/java-media/3D/

=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 3D Home Page: http://java.sun.com/products/java-media/3D/

Reply via email to