From: Andrew R. <and...@us...> - 2004-06-30 21:18:06
|
Update of /cvsroot/plplot/plplot/examples/java In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24924/examples/java Modified Files: README.javademos Log Message: Update README.javademos to reflect recent changes to java configuration and installation. Index: README.javademos =================================================================== RCS file: /cvsroot/plplot/plplot/examples/java/README.javademos,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- README.javademos 29 Jun 2004 08:52:34 -0000 1.7 +++ README.javademos 30 Jun 2004 21:17:56 -0000 1.8 @@ -7,30 +7,32 @@ 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.) Plplot is also known to work with the Sun JDK, gcj/gij and -jikes/sablevm. +jikes/sablevm. Ensure that java and javac are in your PATH. -(2) Set environment variables (under tcsh. For bash use the export -variable=value syntax.) Depending on your installation this step may be -optional. -# 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" +(2) If the java include files are not in a default include directory then +you need to tell configure where they are. You can either use the +--with-java-home option to set the SDK directory e.g. +./configure --with-java-home=/home/software/java/IBMJava2-14/ +Previously this was done via the environment variables JAVA_HOME, which +still works for backwards compatibility. (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 +automatically.) To build the installed examples: +cd /usr/local/plplot/share/plplot-5.3.1/examples/java +make +This will compile the examples and put them in a jar file called +plplot-examples.jar in the examples/java directory. (4) Run java demos +All the plplot java bindings are contained in the jar file plplot.jar. Both +this and plplot-examples.jar need to be accessible to java either by setting +CLASSPATH or by using the -classpath option to java. For example :- + # 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/share/plplot5.3.1/java/plplot.jar +setenv CLASSPATH /usr/local/share/plplot5.3.1/java/plplot.jar:/usr/local/share/plplot/5.3.1/examples/java/plplot-examples.jar java plplot.examples.x01 ..... -All the plplot java bindings and examples are contained in the jar file -plplot.jar. In the above case the source for the examples would be in -/usr/local/share/plplot5.3.1/examples/java/ |