| | |
Access Control Exception vs. Applet Viewer
Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Jun 2004
Posts: 2,108
Reputation:
Solved Threads: 18
I have a weird question. I'm trying to access a .txt file from a java applet, which would reside locally. When running this with the applet viewer, everything works fine. When you click on the .html file, however, you get an accesscontrolexception. I find it weird that the applet viewer works fine, but when you actually click on the .html file, it doesn't work right. Is there a reason for this?
PS: Do you REALLY need to sign an applet that uses a local file?
PS: Do you REALLY need to sign an applet that uses a local file?
When you use the appletviewer you're not restricted by the security limitations imposed on applets.
When you run it in a browser you are so restricted.
One of those restrictions is the inability to access any data that doesn't reside in the same location as the applet itself (which includes locations on your own harddisk when running it from there which are outside the classpath of the applet).
Yes, you do need a signed applet with a valid security certificate that is authorised by your users.
When you run it in a browser you are so restricted.
One of those restrictions is the inability to access any data that doesn't reside in the same location as the applet itself (which includes locations on your own harddisk when running it from there which are outside the classpath of the applet).
Yes, you do need a signed applet with a valid security certificate that is authorised by your users.
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
yes, the user only has to accept the certificate.
For you it's more involved as you have to create it.
There's a tool included to make test certificates but for real use you're going to need an external party like Thawte which will cost money (I'd not trust a self-signed applet...).
For you it's more involved as you have to create it.
There's a tool included to make test certificates but for real use you're going to need an external party like Thawte which will cost money (I'd not trust a self-signed applet...).
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
![]() |
Similar Threads
- Access to control panel (VB.NET)
- Internet Access Stopped Working (Viruses, Spyware and other Nasties)
- Windows 98 Changing control access (Windows 95 / 98 / Me)
- Speech Engine problem (Windows NT / 2000 / XP)
- Can't remove "about:blank" homepage. Please help. (Viruses, Spyware and other Nasties)
Other Threads in the Java Forum
- Previous Thread: java communications.
- Next Thread: I need help as soon possible
| Thread Tools | Search this Thread |
Tag cloud for Java
affinetransform android api append apple applet application arguments array arrays automation bi binary bluetooth businessintelligence busy_handler(null) chat class classes client code component database draw eclipse encryption equation error event exception file fractal game givemetehcodez graphics gui helpwithhomework html ide image input integer intersect j2me java javaexcel javaprojects jmf jni jpanel julia linked linux list loop main map method methods mobile netbeans newbie number open-source oracle oriented panel print problem program programming project qt recursion reference replaysolutions repositories return robot scanner screen scrollbar se server set singleton size sms socket sort sql string swing test threads time tree utility windows xor






