Hi guys, im new, just joined.
i have a serious problem with Java3D...
I have just recently completed a large project i have been working on for a long time, a NVE. The problem i am having is when i run in through NetBeans 6.8 i have no issues, but when i try to load the code and run it in a browser it fails with many runtime security exceptions... i have done a lot of work to try to get it to work by figuring out how to generate a keystore and sign the jar file and all that and i finally got it working on my own computer browser -firefox- . I was excited to show my friend that it had actually worked on one of my schools computers and it failed... i imagine the applet will probably not run on any computer but my own. i have included i link to the webpage so you can see the error for yourself.
http://68.41.192.217/Java/HTML/chatclient3d.html
I think it has something to do with Java3D using native commands and the fact that i probably have not signed the jar file the right way...
java.security.AccessControlException: access denied (java.lang.RuntimePermission exitVM.0)
java.security.AccessControlException: access denied (java.lang.RuntimePermission exitVM.0)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkExit(Unknown Source)
at java.lang.Runtime.exit(Unknown Source)
at java.lang.System.exit(Unknown Source)
at chatroom.ChatClient.closeLink(ChatClient.java:99)
at chatroom.ChatClient.stop(ChatClient.java:105)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Exception in thread "Thread-11" java.security.AccessControlException: access denied (java.lang.RuntimePermission exitVM.0)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkExit(Unknown Source)
at java.lang.Runtime.exit(Unknown Source)
at java.lang.System.exit(Unknown Source)
at chatroom.ChatWatcher.run(ChatWatcher.java:63)
java.lang.NullPointerException
at sun.plugin2.applet.Plugin2Manager.findAppletJDKLevel(Unknown Source)
at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Exception: java.lang.NullPointerException
there is the error... i know the problem is that java3d is not install on every computer, my laptop and dev desktop will run it only because they have j3d installed, any other computer without j3d will not run it, now obviously there is a way to get around this because you see java3d applets and can run them with only the JRE, take Runescape as an example, you only need the JRE to run it, yet it runs extensive 3d operations, and all you need to do is say yes i trust the certificate.
does anyone know how to fix this problem?
thank you~ and hello to everybody once again!