-----Original Message-----
From: Tan Dongquan <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Friday, August 27, 1999 10:55 AM
Subject: [JAVA3D] How to run Java3D applet in IE5

Hello, everybody.
I just want to ask a basic question:
How to run applet in IE5?
I install JDK1.2.2, Java3D(OpenGL Version) and JRE, Java3D applet can work fine in appletviewer. But when I run it in IE5, I always get the message "can't init the class"
 
How should I do? And how to set up it?
 
Many thanks in advance.
 
 
 
You may need to copy the j3d*.jar files from c:\program files\javasoft\jre\1.2\lib\ext to one folder up c:\program files\javasoft\jre\1.2\lib.  The reason is that apparently there is a bug where java doesn't properly look in the ext\ folder for the Java3D components.
 
Also potentially, but less likely, this problem may be that you do not have the Java Plugin.  If you fetch the latest version of Java3D or directly fetch the Java Plugin this may solve this... however it appears that you do have the lastest version.  Below is a comment from the NCSA FAQ.
 
Finally, if you have written any of your own JNI components you will have to use policytool to allow Java permission to load the dlls that you reference.
 
Looking at your error and the release version of Java3D that you are using, it is most likely that your problem is the first one above.
 
 - Anselm Hook
 
...run Java 3D in Internet Explorer?

I finally managed to compile the hello3d.java file but when I try to view (IE4)the html-file in the same directory I get the following error:

java.lang.InstantiationException: Hello3D
         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
 Microsoft (R) VM for Java (tm), 4.0 Release 4.79.0.2339

Java3D will not run with any Microsoft VM. This is because MSJVM does not support the standard Java Native Method interface (JNI) which is used extensively in J3D. The only solution is to use Java Plugin or change to a more compliant JVM.

 

Reply via email to