Skip to main content

Java 3D applets configuration

4 replies [Last post]
neil1988
Offline
Joined: 2010-09-13

I tried to access the official Java 3D example: https://java3d.dev.java.net/applets/FourByFour.html, but I got a blank error: Error:Class not found: org.jdesktop.j3d.examples.four_by_four.FourByFour.

But when I used other computers, some were OK, some got the same error . I've reinstalled JDK(lastest Update 21) and Java3D, reboot the XP system, but the problem remains.

When I use Netbeans 6.9 to develop Java 3D applications, they work fine in the IDE, but when I deployed the applications in the web space, I got the same kind of error, which is Class not found error, too.

I wonder if there are some good guys can help me with this. Thanks very much.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
interactivemesh
Offline
Joined: 2006-06-07

Hi,

the Java 3D applet examples use the [b]'org.jdesktop.applet.util.JNLPAppletLauncher'[/b] and it seems that this launcher doesn't work properly at least since JRE-Version 1.6.0_21-b07. On this forum (as on others) several posts about this subject were published, e.g. http://forums.java.net/jive/thread.jspa?threadID=152236&tstart=30 .

See also the 'The Java Tutorial : Deploying With the Applet Tag' http://download-llnw.oracle.com/javase/tutorial/deployment/applet/html.html

August

neil1988
Offline
Joined: 2010-09-13

Hi interactivemesh,

Thanks a million for your help. Do you mean that I should install a lower version of my JDK? Then which version do you recommend?

Regards

aces
Offline
Joined: 2003-07-17

As pointed by August, tThis is not a JDK problem, but new security constraints from newer JRE (the java runtime) about JNLPAppletLauncher class.

Use applets with JNLP instead.

neil1988
Offline
Joined: 2010-09-13

Thank aces and August, applets with JNLP solved my problem.

;-)