Simple Example (original) (raw)

up

Subsections


JPenExample.javashows how to listen pen events over a component and print them on the standard output.

Running the Example on Linux

  1. Launch a bash shell and make shure that you have the following files in the current directory:
    • jpen-2.jar and libjpen-2.so. These files are contained in the JPen libraryZIP archive.
    • The compiled JPenExample.classexample file.
  2. Run the following commands:
    $ export LD_LIBRARY_PATH=.
    $ java -cp jpen-2.jar:. JPenExample

Running the Example on Windows

  1. Prepare a directory with the following files:
    • jpen-2.jar and jpen-2.dll. These files are contained in the JPen libraryZIP archive.
    • The compiled JPenExample.classexample file.
  2. Open a Command Prompt, go to the directory created in the previous step, and run:
    java -cp jpen-2.jar;. JPenExample

Copyright � 2007--2014 JPen - This document is licensed under the GNU FDL - latex2html/150301
Navigation icons are Copyrighted � 1998 by Dean S. Jones