To compile MazeGenerator, you should run
javac Maze.java MazeGenerator.java
To run maze generation, you should run
java MazeGenerator {height} {width} {filename}
where {height} is the height of maze to generate;
{width} is the width of maze to generate;
{filename} is the name of file to write generated maze to
To compile MazeSolverDFS, you should run
javac Maze.java MazeSolverDFS.java
To run maze generation, you should run
java MazeSolverDFS {filename}
where {filename} is the name of file to read generated maze from.
The solution details will be printed to standard output.