942,967 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Unsolved
  • Views: 985
  • Java RSS
Jan 25th, 2010
0

Java3D help! and hello everybody!

Expand Post »
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 Syntax (Toggle Plain Text)
  1. java.security.AccessControlException: access denied (java.lang.RuntimePermission exitVM.0)
  2. java.security.AccessControlException: access denied (java.lang.RuntimePermission exitVM.0)
  3. at java.security.AccessControlContext.checkPermission(Unknown Source)
  4. at java.security.AccessController.checkPermission(Unknown Source)
  5. at java.lang.SecurityManager.checkPermission(Unknown Source)
  6. at java.lang.SecurityManager.checkExit(Unknown Source)
  7. at java.lang.Runtime.exit(Unknown Source)
  8. at java.lang.System.exit(Unknown Source)
  9. at chatroom.ChatClient.closeLink(ChatClient.java:99)
  10. at chatroom.ChatClient.stop(ChatClient.java:105)
  11. at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
  12. at java.lang.Thread.run(Unknown Source)
  13. Exception in thread "Thread-11" java.security.AccessControlException: access denied (java.lang.RuntimePermission exitVM.0)
  14. at java.security.AccessControlContext.checkPermission(Unknown Source)
  15. at java.security.AccessController.checkPermission(Unknown Source)
  16. at java.lang.SecurityManager.checkPermission(Unknown Source)
  17. at java.lang.SecurityManager.checkExit(Unknown Source)
  18. at java.lang.Runtime.exit(Unknown Source)
  19. at java.lang.System.exit(Unknown Source)
  20. at chatroom.ChatWatcher.run(ChatWatcher.java:63)
  21. java.lang.NullPointerException
  22. at sun.plugin2.applet.Plugin2Manager.findAppletJDKLevel(Unknown Source)
  23. at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
  24. at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
  25. at java.lang.Thread.run(Unknown Source)
  26. 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!
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Neosmithk is offline Offline
5 posts
since Jan 2010
Jan 28th, 2010
0
Re: Java3D help! and hello everybody!
no one knows about this kinda stuff huh...?
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Neosmithk is offline Offline
5 posts
since Jan 2010
Apr 12th, 2010
0
Re: Java3D help! and hello everybody!
According to the the link http://68.41.192.217/Java/HTML/chatclient3d.html, I guess you must have solved this problem!
Congratulations!
Last edited by cmliu2004; Apr 12th, 2010 at 9:24 am.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
cmliu2004 is offline Offline
5 posts
since Mar 2010
Apr 12th, 2010
0
Re: Java3D help! and hello everybody!
Ha, yep its all worked out, thanks.
**If anyone else has this problem please contact me**
this was a very annoying bug to track down... there is almost no support for it online; had to actually contact the author of one of my Java programming books.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Neosmithk is offline Offline
5 posts
since Jan 2010
Sep 7th, 2010
0
Re: Java3D help! and hello everybody!
i jus started on java 3d i dont hav much awareness on coding and running java 3d in net beans 6.8...... i found sum code n try 2 execute and i got following error

Sep 7, 2010 1:50:00 PM javax.media.j3d.NativePipeline getSupportedOglVendor
SEVERE: java.lang.UnsatisfiedLinkError: no j3dcore-ogl-chk in java.library.path
Exception in thread "Thread-2" java.lang.UnsatisfiedLinkError: no j3dcore-d3d in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1030)
at javax.media.j3d.NativePipeline$1.run(NativePipeline.java:189)
at java.security.AccessController.doPrivileged(Native Method)
at javax.media.j3d.NativePipeline.loadLibrary(NativePipeline.java:180)
at javax.media.j3d.NativePipeline.loadLibraries(NativePipeline.java:137)
at javax.media.j3d.MasterControl.loadLibraries(MasterControl.java:948)
at javax.media.j3d.VirtualUniverse.<clinit>(VirtualUniverse.java:280)
at javax.media.j3d.Canvas3D.<clinit>(Canvas3D.java:3862)
at org.jdesktop.j3d.examples.alternate_appearance.AlternateAppearanceBoundsTest.init(AlternateAppearanceBoundsTest.java:110)
at com.sun.j3d.utils.applet.MainFrame.run(MainFrame.java:267)
at java.lang.Thread.run(Thread.java:619)




from tat i conclude that there was problem in including correct path for java 3d librarise
but, i tried 2 include jar file through tools->libraries here i had an issue to which class library in need to add java 3d jar file...... plz give me solution......
Reputation Points: 10
Solved Threads: 0
Newbie Poster
gyuvaraj is offline Offline
1 posts
since May 2010

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Java Forum Timeline: Java1.4 query?
Next Thread in Java Forum Timeline: error while executing cmd commands through java





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC