Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-08-2008, 11:32 PM
Senior Member
 
Join Date: Dec 2007
Location: Spain
Posts: 210
willemjav is on a distinguished road
applet.policy and i/0 problems
Their java comrades

On my mac book java console when running a applet on a web browser the following message appears: java.security.AccessControlException: access denied (java.io.FilePermission Imagestore read). The applet should pick up some image files from a file folder called Imagestore found in my web folder called webwillem at the userdir (it works just fine on the sun applet viewer).
I am pretty sure the it is the applet.policy that is causing trouble.

-I modified the applet.policy file into:
grant codeBase "file:/webwillem/*" {
permission java.security.AllPermission;
};
(should be modified later to just grant reading for that specific folder Imagestore)
-So my first question is how to setup the content of the applet.policy file correctly.
-And where sits that file in order to work correctly (for the moment it gets copied automatic into my jar-applet file without having much effect I believe).
After having the correct content of the policy file and having it put at the right spot, the applet should work (when I take out e.g. the file download content of the applet, it does appear on my webpage).
Please keep in mind that I work on a mac osx (10.4) system, so pc information, I believe does help me much. Though I even do not really understand where the problem lies. I wonder, can’t these things be a little easier (or is it all a result of big company wars such as sun Microsoft apple etc) or am I just to limited to understand this all.

willemjav
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Djava.security.policy=applet.policy willemjav Java Applets 1 03-09-2008 02:57 AM
Djava.security.policy=applet.policy willemjav NetBeans 0 03-09-2008 02:09 AM
problems when I try to run an applet boy22 Java Applets 2 08-11-2007 04:47 PM
problems with applet tags oregon Java Applets 2 08-06-2007 04:19 AM
problems with applet paty Java Applets 1 08-05-2007 05:16 AM


All times are GMT +3. The time now is 06:20 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org