Diva
Home
About
Demos
Downloads
Packages
Forum
Mail lists

How to run the demos

The five demos are located in:

  • diva/canvas/demo/CanvasDemo.java
  • diva/graph/demo/GraphDemo.java
  • diva/sketch/demo/SketchDemo.java
  • diva/whiteboard/demo/WhiteboardDemo.java
  • diva/sketch/trainer/Trainer.java

Here are three ways to run the demos:

Using make
If you have installed and compiled the source release, change to one of the above directories and simply enter:
  make run
This will start Java on the appropriate demo.
By hand
If you have the source release but compiled by hand, type in something like the following:
   c:/jdk1.2/bin/java -classpath ../../.. diva.canvas.demo.CanvasDemo
If java (1.2) is in your PATH, then you can just do
   java -classpath ../../.. diva.canvas.demo.CanvasDemo
Using the jar file
If you downloaded the jar file, change to the directory in which the jar file was downloaded and enter something like this:
    c:/jdk1.2/bin/java -classpath diva.jar diva.canvas.demo.CanvasDemo
If java (1.2) is in your PATH, then you can just do
   java -classpath diva.jar diva.canvas.demo.CanvasDemo
Send feedback to cxh at eecs berkeley edu
Contact 
©2002-2018 U.C. Regents