oggiemc 7 Junior Poster in Training

Hi all,

Im getting the folllowing error for the attached applet code when i try to view it through windows explorer:

java.security.AccessControlException: access denied (java.util.PropertyPermission java.class.path read)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPropertyAccess(Unknown Source)
at java.lang.System.getProperty(Unknown Source)
at AppletTest.init(AppletTest.java:26)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Exception: java.security.AccessControlException: access denied (java.util.PropertyPermission java.class.path read)

import java.applet.Applet;
import java.awt.*;
import java.awt.event.*;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.URL;
import java.net.URLConnection;
import java.net.URLEncoder;

public class AppletTest extends Applet {
	
    protected TextField nameField;
    private TextField pwField;
    private Button searchButton;

    public void init() {
      setLayout(new BorderLayout());

      Panel headerPanel = new Panel();
      headerPanel.setLayout(new BorderLayout());

      Label title = new Label("Login:");
      Panel titlePanel = new Panel();
      titlePanel.setLayout(new FlowLayout(FlowLayout.CENTER));
      titlePanel.add(title);

      headerPanel.add("North", titlePanel);

      Label nameLabel = new Label("Add name :");
      nameField = new TextField(20);
      Panel namePanel = new Panel();
      namePanel.setLayout(new FlowLayout(FlowLayout.CENTER));
      namePanel.add(nameLabel);
      namePanel.add(nameField);
      headerPanel.add("Center", namePanel);
      
      Label pwLabel = new Label("Enter pw:");
      pwField = new TextField(20);
      Panel authorPanel = new Panel();
      authorPanel.setLayout(new FlowLayout(FlowLayout.CENTER));
      authorPanel.add(pwLabel);
      authorPanel.add(pwField);
      headerPanel.add("South", authorPanel);  

      Panel bp = new Panel();
      bp.setLayout(new FlowLayout(FlowLayout.CENTER));
      bp.add(searchButton = new Button("Search"));
      
      searchButton.addActionListener(new Listen());
      
        this.add("North", headerPanel);
        this.add("South", bp);
    }

    public class Listen implements ActionListener{
        public void actionPerformed(ActionEvent e){
           	System.out.println("Search button pressed..");

        }
    }
 }

When i run the code through applet viewer it displays fine..someone help me out with this please?

thanks