previous | start | next

## Packages and Directories

- Package name must match subdirectory name.

      edu.sjsu.cs.sjsu.cs151.alice.Greeter

  must be in subdirectory

      basedirectory/edu/sjsu/cs/sjsu/cs151/alice

- Always compile from the base directory

      javac edu/sjsu/cs/sjsu/cs151/alice/Greeter.java

  or

      javac edu\sjsu\cs\sjsu\cs151\alice\Greeter.java

- Always run from the base directory

      java edu.sjsu.cs.cs151.alice.GreeterTest

previous | start | next