File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Applets and the fly likes how to make simple applet run without permission Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "how to make simple applet run without permission" Watch "how to make simple applet run without permission" New topic
Author

how to make simple applet run without permission

Hare Shiva
Greenhorn

Joined: Jul 08, 2012
Posts: 12
I have created an applet and it doesnot access any client files or resources.So in my understanding i donot need to sign it.I am going to host that applet along with my website.My problem is that whenever browser runs that applet at start up it ask for permission.I want the applet to run without such permission.Its a simple applet.How can i achieve it.I have seen other applets that runs automatically in my browser.I want to achieve same like that.Please any suggestion.
Angus Comber
Ranch Hand

Joined: Jul 16, 2011
Posts: 90
Hare Shiva wrote:I have created an applet and it doesnot access any client files or resources.So in my understanding i donot need to sign it.I am going to host that applet along with my website.My problem is that whenever browser runs that applet at start up it ask for permission.I want the applet to run without such permission.Its a simple applet.How can i achieve it.I have seen other applets that runs automatically in my browser.I want to achieve same like that.Please any suggestion.


Show us your html code hosting the applet and your applet code and someone might be able to comment.

I had all sorts of problems with this when I started. To do mostly with the path to the applet.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41525
    
  53
How is the applet trying to access those files? Since the files aren't on the local file system, you can't use the File or FileInputStream classes (and that would anyway trigger the permissions issue).


Ping & DNS - my free Android networking tools app
Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4529
    
    5

Hare Shiva wrote:My problem is that whenever browser runs that applet at start up it ask for permission.

Which browser(s) did you test in?


luck, db
There are no new questions, but there may be new answers.
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

And what does "asks for permission" mean? Do you see a dialog box? What does it say? What buttons does it have, and what happens when you click those buttons?
 
Consider Paul's rocket mass heater.
 
subject: how to make simple applet run without permission