Click to See Complete Forum and Search --> : Packages


daileyps
October 3rd, 2000, 10:59 AM
Can someone explain to me how packages work? I'm having trouble with class not found errors in applets. My code runs fine as an application, my class path is set, and I'm told that if I put the following at the top of my applet code (will NOT compile any longer with the package stmt):

package appls.attach;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.Action;

public class testAttach extends JApplet {

public testAttach() {



where my html resides off my web root, my classes reside under classes dir in appls/attach...and my applet code is:

<APPLET CODEBASE="classes" CODE="appls/attach/testAttach.class" WIDTH=550 HEIGHT=400>

My applet starts to load, but then I get class not found errors on the other classes used in my applet.