How to Develop a Signed Applet

How to Develop a Signed Applet

Read/write the local machine file system using a signed applet
Introduction
The information in this article helps in answering the following questions:
  • What are the tools needed to develop a signed applet?
  • How to make a test certificate using Microsoft Sign Tool?
  • How to read/write the local machine file system using a signed applet?
Summary
This article shows how to develop a signed applet using the Microsoft sign Tool.
Reading and writing file system through an applet is possible provided you have signed that applet using Microsoft Sign tool for Internet Explorer or Netscape sign tool for Netscape. The example that I showed here is just an example of how to create a test certificate. This is not recommended if you are going to publish your applet over the Web. In that case, you will have to get the certificate from Verisign or Thawte certificate for publishing. Unless the content in your applet is insecure, it may corrupt itself or corrupt other resources where it is playing.
Tools Required
  • Microsoft Internet Explorer 3.0 or upgrade version
  • Microsoft Sign tool which encompasses the following EXEs and DLLs
    • makecert.exe
    • signcode.exe
    • setreg.exe
    • ChkTrust.exe
    • cert2spc.exe
    • cabarc.exe
    • javasign.dll
    • signer.dll
More Information
Part I: Java Applet Read/Write File System using Applet
Part I provides the source code for the read/write applet.
Collapse
import java.applet.*;import com.ms.security.*;import java.awt.*;import java.io.*;import java.lang.*;import java.applet.*;
public class WriteFile extends Applet
{
    String myFile =
"G:\\test.foo";
    File f =
new File(myFile);
    DataOutputStream dos;
public void paint(Graphics g)
    {
       
try
        {
         
//create the output stream   
          dos =
new DataOutputStream(new BufferedOutputStream
                (
new FileOutputStream(myFile),128));
         
//write chars to that file       
          dos.writeChars(
"Cats can hypnotize you when you least expect it\n");
         
//flush stream to that file
          dos.flush();
          g.drawString(
"Successful attempt to write to " + myFile, 10, 10);
        }
       
catch (SecurityException e)
        {
              g.drawString(
"writeFile: caught security exception", 10, 10);
            }
catch (IOException ioe)
        {
        g.drawString(
"writeFile: caught i/o exception", 10, 10);
            }   
    }
}
--  MD WASHIM AKHTAR

Fwd: Blogger Mobile Post

Your carrier is not supported by Blogger Mobile. Please try using
Mail-to-Blogger or visit http://www.blogger.com/mobile-request for more
information.


--
MD WASHIM AKHTAR

Defragments you pc

When you save a file or program (a program is just a collection of special files anyway) to your hard drive, it is not generally stored as a single entity. Instead, it is divided up into a number of small pieces. When you retrieve the file, the computer puts all the pieces back in the correct order so that you can view your file or run your program.

Keys


The Windows keys can be combined with other keys to create some very handy keyboard shortcuts. On a standard computer keyboard, the Windows Keys can be found two keys to the left and right of the space bar, and can be identified by their "Flying Windows" logos.



Windows Key + E Opens Windows Explorer.

Windows Key + F Opens Find Files dialog box

Windows Key + R Opens Run

Windows Key + M Minimize all open windows

Windows Key + Shift Key + M Maximize all open windows

Windows Key + Control + F Opens Find Computer dialog box

Windows Key + F1 Displays Windows Help

Windows Key + Tab Cycle through task bar buttons (Enter to open selected window)

Windows Key + Pause/Break Opens System Properties dialog box



System Information tool

System Information can be a very useful tool for troubleshooting computer problems. For example, digging into items listed in the "Software Environment" can give you information about which programs have recently experienced serious errors, driver details, network connections, running tasks and more. The System History view records changes to hardware resources and the software environment and this can help you track down problems that may have occurred due to driver upgrades or hardware changes.

An integrated search feature allows you to more easily find what you are looking for.

The average computer user may not need to access the System Information Tool very often. However, it is wise to know what the tool offers and how to access it if the need arises.

To launch the System Information tool:
  1. Click "Start" and then "Run".
  2. In the Run field, enter "msinfo32.exe" without the quotes.
  3. Click "OK" and the tool should launch.


Alternatively, you can click "Start /All Programs/Accessories/System Tools/System Information" to open the tool directly from the Start Menu.

Technology News and More

Go to http://www.techgig.com/ for latest technology news and do more than you think.

Wasim Akhtar

Download Adobe Acrobat Reader DC Offline Installer (64-bit, 32-bit)

UPDATE: Adobe Acrobat Reader DC 24.002.20736 for Windows and Mac is available for download. This version is labeled as optional update which...