The Artima Developer Community
Sponsored Link

Java Answers Forum
java.io.FilePermission

2 replies on 1 page. Most recent reply: Feb 28, 2002 2:56 AM by jerome

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 2 replies on 1 page
YACINE

Posts: 1
Nickname: telem
Registered: Feb, 2002

java.io.FilePermission Posted: Feb 26, 2002 12:16 PM
Reply to this message Reply
Advertisement
hello,
I?m trying to develop an applet, which will authenticate the user by loading the path and the name for the file (with Class FileDialog ) from the computer?s user and her(his) password.

My environment are WINDOWS 2000, and I use J2SDK 1.3.1

When I run my applet , I have two kind of messages :
" java.lang.RuntimePermission exitVM " or
?java.security.AccessControlException: access denied (java.io.FilePermission F:\yacapp\Test.epf read) ?

who can help me, to understand these message.
thank you for your help and all advice are ok

yac


Robert Gottshall

Posts: 1
Nickname: vapidfire
Registered: Feb, 2002

Re: java.io.FilePermission Posted: Feb 27, 2002 12:11 PM
Reply to this message Reply
Running in a browser? Applets aren't allowed to manipulate the file system. Might help if you digitally sign your applet.

rob

jerome

Posts: 5
Nickname: romje
Registered: Feb, 2002

Re: java.io.FilePermission Posted: Feb 28, 2002 2:56 AM
Reply to this message Reply
I'll just add to the Robert answer that your project would have more value if you fetched your data from any server using LDAP requests ( using JNDI ) or so on...

jerome

Flat View: This topic has 2 replies on 1 page
Topic: NoNo needs to convert java menu into tables Previous Topic   Next Topic Topic: FileNotFound Exception on url.openStream()

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use