Applet Woes
in
Integration and Hardware
•
2 years ago
I am teaching a first course to about 100 students. Each assignment requires an applet posted to a portfolio web page. The current assignment requires the use of either P3D or OPENGL. Both run properly in the IDE but the applets fail to load for OPENGL. I tried this as an applet on the web and using appletview on a Mac in the terminal window. The first part of the error message is:
FRED2:applet7 jar$ appletviewer index.html
java.security.AccessControlException: access denied (java.net.SocketPermission download.java.net
connect,accept,resolve)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)
When I removed the import statement for OPENGL and replace OPENGL argument in the function call of size( ) with P3D, the error goes away.
I am assuming the import is the problem.
Two questions:
briefly, why?
Is there a work-around to allow for import of this or other libraries that I want the class to use in future assignments while continuing to post applets on the web.
Thanks
Jim Roberts
FRED2:applet7 jar$ appletviewer index.html
java.security.AccessControlException: access denied (java.net.SocketPermission download.java.net
connect,accept,resolve)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)
When I removed the import statement for OPENGL and replace OPENGL argument in the function call of size( ) with P3D, the error goes away.
I am assuming the import is the problem.
Two questions:
briefly, why?
Is there a work-around to allow for import of this or other libraries that I want the class to use in future assignments while continuing to post applets on the web.
Thanks
Jim Roberts
1