forked from ome/bioformats
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathijview
More file actions
executable file
·35 lines (29 loc) · 1.05 KB
/
Copy pathijview
File metadata and controls
executable file
·35 lines (29 loc) · 1.05 KB
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
32
33
34
35
#!/bin/bash
# ijview: a script for displaying an image file in ImageJ
# using the Bio-Formats Importer plugin
# Required JARs: loci_tools.jar, ij.jar
# JAR libraries must be in the same directory as this
# command line script for the command to function.
# If you are a developer working from source and have
# the LOCI classes in your CLASSPATH, you can set the
# LOCI_DEVEL environment variable to use them instead.
PROG=loci.plugins.in.Importer
DIR=`dirname "$0"`
if [ $LOCI_DEVEL ]
then
java -mx512m $PROG "$@"
elif [ -e "$DIR/ij.jar" ] && \
([ -e "$DIR/loci_tools.jar" ] || [ -e "$DIR/loci_plugins.jar" ])
then
java -mx512m -cp "$DIR":"$DIR/loci_plugins.jar":"$DIR/loci_tools.jar":"$DIR/ij.jar" $PROG "$@"
else
echo "Required JAR libraries not found. Please download:"
echo " loci_tools.jar"
echo "from:"
echo " http://www.openmicroscopy.org/site/products/bio-formats/downloads"
echo "and:"
echo " ij.jar"
echo "from:"
echo " http://rsb.info.nih.gov/ij/upgrade/"
echo "and place in the same directory as the command line tools."
fi