Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

how to make simple applet run without permission

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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.
 
Rancher
Posts: 43016
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).
 
Bartender
Posts: 5167
11
Netbeans IDE Opera Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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?
 
Marshal
Posts: 25682
69
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Don't mess with me you fool! I'm cooking with gas! Here, read this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic