The Java security rules dictate that, when a browser runs a Java program, the resource locator allows files to be loaded from only a location identified with the place that produced the class.
Suppose, for example, that the file name is general.movies
. Then,
the resource locator will look for general.movies
in the directory
that holds the MovieAuxiliaries
class.
Alternatively, if the file name includes a relative path, such as
data/general.movies
, then, the resource locator will look for
general.movies
in the data
subdirectory of the directory that
holds the MovieAuxiliaries
class.