The following assumes that Eclipse is used for development. To start development, open the Eclipse project files in the top-level directory by going to File, New, Java Project, choose Create project from existing source and select the top-level directory.
com/mxgraph/examples contains the following examples:
com/mxgraph/examples/swing contains the following examples:
com/mxgraph/examples/web contains more servlet examples. Right click Main.java in this directory, choose Run As, Java Application (in Eclipse) or execute "ant web-example" in the java directory (using Ant) and point your browser to http://localhost:8080/.