Here are some examples of invoking TOPCAT from the command line.
In each case two forms are shown: one using the topcat
script, and one using the jar file directly. In the latter case,
the java
command is assumed to be on the your path, and
the jar file itself, assumed in directory my/tcdir
,
might be named topcat.jar
,
topcat-full.jar
, or something else, but the form
of the command is the same.
topcat java -jar topcat.jar
topcat -h java -jar topcat.jar -h
topcat testcat.fits java -jar my/tcdir/topcat.jar testcat.fits
topcat t1.fits -f ascii t2.txt t3.txt -f votable t4.xml java -jar my/tcdir/topcat.jar t1.fits -f ascii t2.txt t3.txt -f votable t4.xml
topcat -Xmx256M -disk java -Xmx256M -jar my/tcdir/topcat.jar -disk
topcat -classpath my/funcdir/funcs.jar -Djel.classes=my.ExtraFuncs t1.fits java -classpath my/tcdir/topcat.jar:my/funcdir/funcs.jar \ -Djel.classes=func.ExtraFuncs \ uk.ac.starlink.topcat.Driver t1.fits
topcat -classpath my/jdbcdir/pg73jdbc3.jar -Djdbc.drivers=org.postgresql.Driver java -classpath my/tcdir/topcat.jar:my/jdbcdir/pg73jdbc3.jar \ -Djdbc.drivers=org.postgresql.Driver uk.ac.starlink.topcat.Driver
topcat -classpath my/driverdir/drivers.jar \ -Dstartable.readers=my.MyTableBuilder \ -Dstartable.writers=my.MyTableWriter \ java -classpath my/tcdir/topcat.jar:my/driverdir/drivers.jar \ -Dstartable.readers=my.MyTableBuilder \ -Dstartable.writers=my.MyTableWriter \ uk.ac.starlink.topcat.Driver
-Dx=y
definitions can be avoided by putting equivalent
x=y
lines into the .starjava.properties
in your
home directory.