Hi, my codes works well in NetBeans as an applet, but why no appearance in a html.
One thing I must mention is I create my code that works both as an applet and as a stand-alone application. I have three class: Combox.java ,Drawing.java and TextCell.java. The code structure looks like Thanks for any help.
One thing I forget is: Press Spacebar or Enter to activate this control activate the control is to click inside the border of the applet. But I click anywhere, nothing.
Applets are not allowed to do file I/O, unless they are signed, or the local security policy altered. That's what's causing this exception. See HowCanAnAppletReadFilesOnTheLocalFileSystem for more details.
yes,I am doing a self-signed certificate, I followed an example on the web. But I got wrong at some step. Any help, thanks. Where is the file migsuncert.crt located?
Originally posted by Hui Zhao: Where is the file migsuncert.crt located?
C:\Program Files\Java\jdk1.6.0_01\bin>keytool -export -alias migkey -file migsuncert.crt Enter keystore password: keytool error: java.io.FileNotFoundException: migsuncert.crt (Access is denied)
The filename is used for the certificate file you're trying to export to; it doesn't exist yet. Does the account you're using possibly not have write permissions for that directory? That's another reason for that exception to happen.
I signed successfully in another machine. And I follow the instructions in the book "Java Cookbook". You can now sign the JAR file with your test certificate:
The jarsigner tool updates the META-INF directory of your JAR file to contain certificate information and digital signatures for each entry in the archive. Now I have two questions. 1)What is meant by the term "META-INF" directory? 2)Because my applet contains File I/O, after this step can I run my applet?
Jar files contain a META-INF directory which in most cases contains just a single file: the manifest. In it you'll find various pieces of meta information about the jar file, including information about its signature. That's why it is updated if the jar file is signed. The jar file specification has more details on this.
Because my applet contains File I/O, after this step can I run my applet?