wood burning stoves 2.0*
The moose likes Applets and the fly likes applet running using appletviewer but not with browser Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "applet running using appletviewer but not with browser " Watch "applet running using appletviewer but not with browser " New topic
Author

applet running using appletviewer but not with browser

amit basak
Greenhorn

Joined: Apr 27, 2011
Posts: 3
I'm trying run a applet program using browser, it is completely running using the appletviewer, bt when i'm using the browser only the first window is coming,
according to the program another window will open after giving my name in the 1st window bt it is not happening in case of the browser...
help me
amit basak
Greenhorn

Joined: Apr 27, 2011
Posts: 3
in java console there is an exception , which is -



Exception in thread "AWT-EventQueue-2" java.security.AccessControlException: access denied (java.net.SocketPermission 127.0.0.1:2000 connect,resolve)
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.checkConnect(Unknown Source)
at sun.plugin2.applet.Applet2SecurityManager.checkConnect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at ConnectProcessing.<init>(ConnectProcessing.java:28)
at ConfDraw.<init>(ConfDraw.java:208)
at IntroCanvas.action(IntroCanvas.java:119)
at java.awt.Component.handleEvent(Unknown Source)
at java.awt.Window.postEvent(Unknown Source)
at java.awt.Component.postEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$000(Unknown Source)
at java.awt.EventQueue$1.run(Unknown Source)
at java.awt.EventQueue$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue$2.run(Unknown Source)
at java.awt.EventQueue$2.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Ankit Tripathi
Ranch Hand

Joined: Oct 17, 2009
Posts: 198
Have you checked your browser for security settings? Applets are by default considered 'unsafe' by JVM. Go through the link-http://www-personal.umich.edu/~lsiden/tutorials/signed-applet/signed-applet.html. Must be of great use for you........
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41141
    
  45
Applets can only make network connections to the host where they're served from; I'm guessing you're not using an "http://127.0.0.1..." URL to access the applet.


Ping & DNS - my free Android networking tools app
amit basak
Greenhorn

Joined: Apr 27, 2011
Posts: 3
Thank you so much ankit...
it was 1st time for me do all these ... bt now it is working properly ...
thank you again

Thank you ulf to for replying ..
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: applet running using appletviewer but not with browser
 
Similar Threads
Hiding Command Console Window while using appletviewer
Really Frustrated with "main" error message
Swing Applet
why is a applet not running in some Browser
Changing the working directory