Skip to main content

Cannot load Java 3D in AppletLauncher

5 replies [Last post]
zamirathe
Offline
Joined: 2010-07-28

I have searched on this and cannot seem to find an answer that actually works for me. I would appreciate any help.

My html code:

</p>
<p>Java 3D Test</p>
<p>No Java in your browser</p>
<p>

The errors I get when I try to run the applet using appletviewer -debug javatest.html from the command line.

<br />
Initializing jdb ...<br />
> run<br />
run sun.applet.Main javatest.html<br />
Set uncaught java.lang.Throwable<br />
Set deferred uncaught java.lang.Throwable<br />
><br />
VM Started: java.security.AccessControlException: access denied (java.net.SocketPermission download.java.net connect,accept,resolve)<br />
	at java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)<br />
	at java.security.AccessController.checkPermission(AccessController.java:546)<br />
	at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)<br />
	at java.net.URLClassLoader$4.run(URLClassLoader.java:515)<br />
	at java.security.AccessController.doPrivileged(Native Method)<br />
	at java.net.URLClassLoader.getPermissions(URLClassLoader.java:513)<br />
	at sun.applet.AppletClassLoader.getPermissions(AppletClassLoader.java:238)<br />
	at java.security.SecureClassLoader.getProtectionDomain(SecureClassLoader.java:235)<br />
	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)<br />
	at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)<br />
	at java.net.URLClassLoader.access$000(URLClassLoader.java:58)<br />
	at java.net.URLClassLoader$1.run(URLClassLoader.java:197)<br />
	at java.security.AccessController.doPrivileged(Native Method)<br />
	at java.net.URLClassLoader.findClass(URLClassLoader.java:190)<br />
	at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:172)<br />
	at java.lang.ClassLoader.loadClass(ClassLoader.java:307)<br />
	at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:144)<br />
	at java.lang.ClassLoader.loadClass(ClassLoader.java:248)<br />
	at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:654)<br />
	at sun.applet.AppletPanel.createApplet(AppletPanel.java:785)<br />
	at sun.applet.AppletPanel.runLoader(AppletPanel.java:714)<br />
	at sun.applet.AppletPanel.run(AppletPanel.java:368)<br />
	at java.lang.Thread.run(Thread.java:619)<br />
java.security.AccessControlException: access denied (java.net.SocketPermission download.java.net connect,accept,resolve)<br />
	at java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)<br />
	at java.security.AccessController.checkPermission(AccessController.java:546)<br />
	at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)<br />
	at java.net.URLClassLoader$4.run(URLClassLoader.java:515)<br />
	at java.security.AccessController.doPrivileged(Native Method)<br />
	at java.net.URLClassLoader.getPermissions(URLClassLoader.java:513)<br />
	at sun.applet.AppletClassLoader.getPermissions(AppletClassLoader.java:238)<br />
	at java.security.SecureClassLoader.getProtectionDomain(SecureClassLoader.java:235)<br />
	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)<br />
	at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)<br />
	at java.net.URLClassLoader.access$000(URLClassLoader.java:58)<br />
	at java.net.URLClassLoader$1.run(URLClassLoader.java:197)<br />
	at java.security.AccessController.doPrivileged(Native Method)<br />
	at java.net.URLClassLoader.findClass(URLClassLoader.java:190)<br />
	at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:172)<br />
	at java.lang.ClassLoader.loadClass(ClassLoader.java:307)<br />
	at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:144)<br />
	at java.lang.ClassLoader.loadClass(ClassLoader.java:248)<br />
	at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:654)<br />
	at sun.applet.AppletPanel.createApplet(AppletPanel.java:785)<br />
	at sun.applet.AppletPanel.runLoader(AppletPanel.java:714)<br />
	at sun.applet.AppletPanel.run(AppletPanel.java:368)<br />
	at java.lang.Thread.run(Thread.java:619)</p>
<p>The application exited<br />

I am on Ubuntu Linux. The jar will run correctly when called via java -jar WyvernApplet.jar, but I cannot get the applet to work. I have tried downloading all the files and placing them in a separate directory and using absolute paths to them on my computer, but I get the same security error except for reading a file. I do have read access to all the files. When I run the file in a browser, all I get is Unable to start Wyvern Test. Is it just the appletviewer that doesn't have permission to download the files? If so, how can I find out what is causing the error?

I have uploaded all necessary files on to my domain so you can see the problem directly. It is doing the same on my Linux laptop and my Windows Vista desktop (which only has the plugin installed). You can see it at http://www.zenathia.com/javatest.html

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
fodox
Offline
Joined: 2010-05-31

I tried your URL, I get a different error:

[b]Error: Class not found: dragons.WyvernApplet[/b]

But pay attention, after the last java update, version 6 update 21 build 1.6.0_21-b07, all my applets that are using JNLPAppletLauncher give the same error, "Class not found:" with the name of the main class. Before updating it was working perfectly.

Maybe someone has the same problem...

emmanuelchauvin
Offline
Joined: 2008-09-14

Same problem for me since I upgraded my JRE update 20 to JRE update 21 ...

zamirathe
Offline
Joined: 2010-07-28

Well, I have been researching for multiple problems. As I am new to Java, I am not used to what the different errors mean yet. However, I believe the reason why the applet won't load is because it does not extend JApplet but JFrame. There is not init() in the class, which could be why.

I am having other problems with this as an application though. Specifically, it does not seem to be loading in the mtl file. I only know this because the mtl file specifies different colors and all I get is a white dragon with the wing membrane completely missing. I am changing to a different example, the objload from the java 3d tutorial, to see if that is the reason. Once I figure out how to make it an applet, I'll put it up at that url and post here if I have any problems.

Thank you for the information about the jre update. I am using 6.20, as that is the latest available for Ubuntu, which I am running.

zamirathe
Offline
Joined: 2010-07-28

Well, doing some research tonight, I found out why. AppletLauncher has been completely blacklisted in the latest update. Which means anyone who got the new update cannot load applets using it anymore. So, off to jnlp files I go, which is troublesome in itself in that Chrome just downloads the file and doesn't run it like every other browser.

sikriyogesh
Offline
Joined: 2010-01-18

Hello
And please make sure that you close the Param tag Because this is also one of the reason of not working in some browser.

Regards
Yogesh