Applets normally cannot access files on the browser machine. In order to do so, one
either has to change the security restrictions for all applets (or all applets coming
from a particular location) by editing the policy file at
<jre>\lib\security\java.policy. This is generally not recommended. It's also
something each person who runs your applet would have to do.
The alternative is to sign your applet with an RSA signature using a certificate
provided by a place like VeriSign or Thawte. If done correctly, when someone runs
your applet, they'll be presented a dialog asking if they trust code signed by you (or
whomever signed it). If the user chooses to trust the applet, the applet can do
anything. Otherwise, it runs as a normal applet without access to the file system.
Joel
-----Original Message-----
From: gladis [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 08, 2001 1:41 AM
To: '[EMAIL PROTECTED]'
Subject: FW: Security in JApplets-Very Urgent
G.D.R Software Limited
----------------------------------------------------------------------------------------------------------------------------------------
I have attached a forwarded message.Please help me out to solve it,
TIA,
----------------------------------------------------------------------------------------------------------------------------------------
"Life should be about growth and your willingness to keep learning and to Keep helping
others"
Gladis S.A,
G.D.R Software Limited,
Beratina Agrahara,
Bangalore
-----Original Message-----
From: gladis [SMTP:[EMAIL PROTECTED]]
Sent: Thursday, March 08, 2001 12:05 PM
To: '[EMAIL PROTECTED]'
Subject: Security in JApplets-Very Urgent
G.D.R Software Limited
----------------------------------------------------------------------------------------------------------------------------------------
hi frens,
I have created Japplet which is an editor and to be opened in a
browser.But it is throwing exceptions when I try to open it in the IE5.0 browser.How
can I set the security permission.It is also giving java.io.File when trying to read
the
Gif files.Below is my html code created with html converter.Please also tell me how to
sign the jar file.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Untitled</title>
</head>
<body>
<p>
<!--"CONVERTED_APPLET"-->
<!-- CONVERTER VERSION 1.0 -->
<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
WIDTH = 500 HEIGHT = 50
codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0">
<PARAM NAME = CODE VALUE = Menu.class>
<PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
<COMMENT>
<EMBED type="application/x-java-applet;version=1.3"
java_CODE = Menu.class
WIDTH = 500 HEIGHT = 500
pluginspage="http://java.sun.com/products/plugin/1.3/plugin-install.html">
<NOEMBED>
</COMMENT>
</NOEMBED></EMBED>
</OBJECT>
<!--
<APPLET CODE = writeFile.class ARCHIVE = "writeFile.jar" WIDTH = 500 HEIGHT = 50 >
</APPLET>
-->
<!--"END_CONVERTED_APPLET"-->
<!--
<APPLET CODE = "Menu.class" WIDTH = 500 HEIGHT = 500 archive=menu1.jar>
</APPLET>
-->
<!--"END_CONVERTED_APPLET"-->
</body>
</html>
PLEASE HELP ME OUT ASAP.
Tia,
----------------------------------------------------------------------------------------------------------------------------------------
"Life should be about growth and your willingness to keep learning and to Keep helping
others"
Gladis S.A,
G.D.R Software Limited,
Beratina Agrahara,
Bangalore
_______________________________________________
Swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/swing
_______________________________________________
Swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/swing