File: README.javademos

package info (click to toggle)
plplot 5.3.1-4
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 26,248 kB
  • ctags: 11,687
  • sloc: ansic: 86,045; xml: 17,249; sh: 12,400; tcl: 8,113; cpp: 6,824; perl: 4,383; python: 3,915; makefile: 2,899; java: 2,788; fortran: 290; sed: 5; awk: 1
file content (31 lines) | stat: -rw-r--r-- 1,109 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
These java examples are designed to mimic the results of the equivalent
C, Tcl, and Python examples.  

Here is the cookbook for compiling and running these examples.

(1) Install a Java SDK (Software Development Kit).  I use
IBMJava2-SDK-14.tgz which is freely downloadable from IBM.  (See
http://www-106.ibm.com/developerworks/java/jdk/linux/tested.html for product
description.)

(2) Set environment variables (under tcsh.  For bash use the export
variable=value syntax.)
# Your location for the java SDK will vary depending on where you unpack the
# tarball of the SDK.
setenv JAVA_HOME /home/software/java/IBMJava2-14/
setenv PATH $PATH":$JAVA_HOME/bin"

(3) (This next step is no longer required because it is done
automatically by make install.)  To build the installed examples:
cd /usr/local/plplot/lib/
javac -d java java/plplot/examples/*.java

(4) Run java demos

# For newer jdk's can use the plplot/examples/x?? notation, but the dot
# notation works for all jdk's.

# This location will depend on your install prefix:
setenv CLASSPATH /usr/local/plplot/lib/java
java plplot.examples.x01 .....