Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Why does an Applet not load in appletviewer?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Why does an Applet not load in appletviewer?



While does an Applet load in Safari, but not in appletviewer? My the default javac on my machine is 1.5,
but I'm using the option -source 1.4 with javac.
When I've tried with the option -debug to appletviewer, and then run, I get an exception related to networking
classes and methods. (WHY??) The applet I've written dont contain ANY networking code.


Output Dump:
VM Started: java.security.AccessControlException: access denied (java.net.SocketPermission TryApplet.class resolve)
at java.security.AccessControlContext.checkPermission (AccessControlContext.java:264)
at java.security.AccessController.checkPermission (AccessController.java:427)
at java.lang.SecurityManager.checkPermission (SecurityManager.java:532)
at java.lang.SecurityManager.checkConnect (SecurityManager.java:1031)
at java.net.InetAddress.getAllByName0(InetAddress.java:1117)
at java.net.InetAddress.getAllByName0(InetAddress.java:1098)
at java.net.InetAddress.getAllByName(InetAddress.java:1061)
at java.net.InetAddress.getByName(InetAddress.java:958)
at java.net.InetSocketAddress.<init>(InetSocketAddress.java: 124)
at sun.net.NetworkClient.doConnect(NetworkClient.java:157)
at sun.net.NetworkClient.openServer(NetworkClient.java:118)
at sun.net.ftp.FtpClient.openServer(FtpClient.java:488)
at sun.net.ftp.FtpClient.openServer(FtpClient.java:475)
at sun.net.www.protocol.ftp.FtpURLConnection.connect (FtpURLConnection.java:270)
at sun.net.www.protocol.ftp.FtpURLConnection.getInputStream (FtpURLConnection.java:352)
at sun.applet.AppletClassLoader.getBytes (AppletClassLoader.java:280)
at sun.applet.AppletClassLoader.access$100 (AppletClassLoader.java:44)
at sun.applet.AppletClassLoader$1.run(AppletClassLoader.java: 158)
at java.security.AccessController.doPrivileged(Native Method)
at sun.applet.AppletClassLoader.findClass (AppletClassLoader.java:155)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.applet.AppletClassLoader.loadClass (AppletClassLoader.java:119)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at sun.applet.AppletClassLoader.loadCode (AppletClassLoader.java:591)
at sun.applet.AppletPanel.createApplet(AppletPanel.java:712)
at sun.applet.AppletPanel.runLoader(AppletPanel.java:641)
at sun.applet.AppletPanel.run(AppletPanel.java:320)
at java.lang.Thread.run(Thread.java:613)



"Home is not where you are born, but where your heart finds peace" - Tommy Nordgren, "The dying old crone"

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.