To run Ptplot 5.10.beta applets, you must install the version 1.5 or later of the Javasoft Java Plug-in.
If you will be extending the Ptplot classes, then you
should install the Java 6 SE Java Development Kit:
http://java.sun.com/javase/downloads/index.jsp
If you do not want to require your users to install the Java 1.5 or later plug-in, then you should stick with Ptplot 3.1, which does not use Swing.
Ptplot is distributed in several formats.
ptplot
, then you may want to go through the installation
procedure so that the standalone scripts are properly localized.
This tar file (ptplot5.10.beta.tar.gz), will unpack into called ptplot5.10.beta, and the configure-make-make install process will not install any files outside of this ptplot5.10.beta directory. So if you unpack the tar file into /usr/local, after installing you will have /usr/local/ptplot5.10.beta, and you may want to tell users to add /usr/local/ptplot5.10.beta/bin to their PATH. The scripts in the bin directory will run the plotter as a standalone application, or they can add /usr/local/ptplot5.10.beta to their Java CLASSPATH.
If you are using Windows and you want to rebuild Ptplot or
localize the standalone scripts, then you will need to install the
Cygwin toolkit from
http://sources.redhat.com/cygwin/
We have packaged up the necessary Cygwin tools and made them available at
https://ptolemy.berkeley.edu/ptolemyII/ptIIlatest/cygwin.htm
.
If you are running Windows and do not want to install the Cygwin toolkit,
then see
Using Ptplot under Windows without Cygwin
Below are the installation instructions for Unix and Windows with Cygwin.
javac
is in your path.
PTII
environment variable to point
to the top of the Ptplot tree. Under C-shell, one would do:
setenv PTII ~/src/ptolemy/ptplot5.10.betaUnder Cygwin with bash:
PTII=c:\\ptolemy\\ptplot5.10.beta export PTII
PTII
directory:
cd "$PTII"(The double quotes are only necessary if $PTII has spaces in it)
configure
rm -f config.* ./configure
make install
$PTII/bin
contains the following scripts
histogram
ptplot
pxgraph
configure
is a /bin/sh
script
that determines some information about your environment and
then modifies a few files.
When the configure
script is run, it reads in
mk/ptII.mk.in
and
bin/ptinvoke.in
generates
mk/ptII.mk
and
bin/ptplot
To get help with configure
, try
./configure --help
configure
reads in the .in
files
and substitutes strings inside the @
For example, configure
reads in
bin/ptinvoke.in
and sees
PTII_DEFAULT=@PTII_DEFAULT@ PTJAVA_DIR=@PTJAVA_DIR@becomes
PTII_DEFAULT=/users/cxh/ptII PTJAVA_DIR=/opt/jdk1.5
PTII
variable to the top-level
directory of the Ptplot tree.
C:\ptolemy\ptplot5.10.beta> PTII=c:\\ptolemy\\ptplot5.10.beta
PTII
is used by the standalone ptplot.bat
script and other scripts
c:\ptolemy\ptplot5.10.beta
as c:ptolemyptolemy5.10.beta
)
java
is in your path by running
java -version
%PTII%\bin
to your PATH.
ptplot.bat
C:\ptolemy\ptplot5.10.beta> cd ptolemy\plot
C:\ptolemy\ptplot5.10.beta\ptolemy\plot>set CLASSPATH=..\.. C:\ptolemy\ptplot5.10.beta\ptolemy\plot>echo %CLASSPATH% ..\..
C:\ptolemy\ptplot5.10.beta\ptolemy\plot>del *.class C:\ptolemy\ptplot5.10.beta\ptolemy\plot>javac *.java
ptplot.bat
, which reads %PTII%
C:\ptolemy\ptplot5.10.beta\ptolemy\plot>ptplot.bat
.class
files
plotapplet.jar
pxgraphapplet.jar
pxgraphargs
applet parameter
should use this jar file.
plotmlapplet.jar
plot.jar
plot.jar
is used by the Ptolemy II build system.
plotapplication.jar
plotapplication.jar
is
present, then it is used by the standalone scripts (ptplot
etc.)
*applet.jar
file into the same directory as your applet,
and then to use the archive
applet directive.
For examples of applet html code, see the demonstrations.
ptinvoke.in
and produced ptplot
. The ptplot
script
is shared between the standalone applications, ptplot
determines what name it was called with, and selects the appropriate
class accordingly.
If the ptplot
script is run,
then ptolemy.plot.PlotApplication
is run
If the ptplot
script is copied to histogram
,
then ptolemy.plot.plotml.HistogramMLApplication
is run
If the ptplot
script is copied to pxgraph
,
then ptolemy.plot.compat.PxgraphApplication
is run
Under Unix or Windows with Cygwin, you can use a hard link to create the histogram and pxgraph script:
cd $PTII/bin ln ptplot histogram ln ptplot pxgraph
Under Windows in a DOS shell, three .bat scripts are provided:
ptplot.bat
, histogram.bat
and
pxgraph.bat
Last Updated: $Date: 2014-09-24 07:50:41 -0700 (Wed, 24 Sep 2014) $