Subsections
Simple Example
JPenExample.java
shows how
to listen pen events over a component and print them on the standard output.
- 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 library
ZIP archive.
- The compiled JPenExample.class
example file.
- Run the following commands:
-
- $ export LD_LIBRARY_PATH=.
$ java -cp jpen-2.jar:. JPenExample
- Prepare a directory with the following files:
jpen-2.jar
and jpen-2.dll
. These files are contained in
the JPen library
ZIP archive.
- The compiled JPenExample.class
example file.
- 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