Skip to main content

How can I use a Java3D applet in a browser?

2 replies [Last post]
blabloeblabloebla
Offline
Joined: 2010-04-10

I've created a java3D applet in my my SDK (Eclipse) and when I run the applet in Eclipse it works.

But when I use it as a applet in my browser (IE and chrome) it doesn't works.

I've used the JNLP applet launcher, but that doesn't works too.

Does someone know how I can use a Java 3D applet in the browser?

Thanks,

blabloeblabloebla

Message was edited by: blabloeblabloebla

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
preisser144
Offline
Joined: 2010-09-25

Hi,
I also have this problem. When I visit the Java 3D Example Applet page: https://java3d.dev.java.net/applets/FourByFour.html
It says in the Status bar:
Error : Class not found: org.jdesktop.j3d.examples.four_by_four.FourByFour

I get this stack trace:
java.lang.ClassNotFoundException: org.jdesktop.j3d.examples.four_by_four.FourByFour
at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at org.jdesktop.applet.util.JNLPAppletLauncher.startSubApplet(JNLPAppletLauncher.java:1914)
at org.jdesktop.applet.util.JNLPAppletLauncher.access$200(JNLPAppletLauncher.java:658)
at org.jdesktop.applet.util.JNLPAppletLauncher$5.run(JNLPAppletLauncher.java:1269)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)

The same happens if I try to make my own Java 3D applet with the JNLP applet launcher. I always get a ClassNotFoundException although the applet jar-file is included in the "archive" parameter. So why are there this errors, even on the original Java3D Site?

The errors appear both with IE and Firefox (Windows). I use Java 6 SE 1.6.0_21-b07 on 32-Bit Windows XP.

Edit: I just tried it with 1.6.0_20 and there it works, eh? Why is it working with an older Java version but not with the current one?

Edit: Nevermind, I found the [url=http://forums.java.net/jive/thread.jspa?threadID=153182&tstart=0]topic discussing the problem[/url].

Message was edited by: preisser144

lburnham
Offline
Joined: 2010-08-24

I can't imagine it "not working" without there being an error message of some kind in the Java Console; you want to tell us what that is?