source: trunk/tools/ijview @ 6460

Revision 6460, 1.0 KB checked in by curtis, 10 years ago (diff)

ijview depends on loci_plugins.jar, not bio-formats.jar.

  • Property svn:executable set to *
RevLine 
[2432]1#!/bin/bash
2
3# ijview: a script for displaying an image file in ImageJ
4#         using the Bio-Formats Importer plugin
5
[3138]6# Required JARs: loci_tools.jar, ij.jar
[2432]7
8# JAR libraries must be in the same directory as this
[4207]9# command line script for the command to function.
[2432]10
11# If you are a developer working from source and have
12# the LOCI classes in your CLASSPATH, you can set the
13# LOCI_DEVEL environment variable to use them instead.
14
[6438]15PROG=loci.plugins.in.Importer
[4207]16DIR=`dirname "$0"`
[2435]17
[2432]18if [ $LOCI_DEVEL ]
19then
[2435]20  java -mx512m $PROG "$@"
[6002]21elif [ -e "$DIR/ij.jar" ] && \
[6460]22  ([ -e "$DIR/loci_tools.jar" ] || [ -e "$DIR/loci_plugins.jar" ])
[2432]23then
[6460]24  java -mx512m -cp "$DIR":"$DIR/loci_plugins.jar":"$DIR/loci_tools.jar":"$DIR/ij.jar" $PROG "$@"
[2432]25else
26  echo "Required JAR libraries not found. Please download:"
27  echo "  loci_tools.jar"
28  echo "from:"
[5987]29  echo "  http://www.loci.wisc.edu/bio-formats/downloads"
[2432]30  echo "and:"
31  echo "  ij.jar"
32  echo "from:"
33  echo "  http://rsb.info.nih.gov/ij/upgrade/"
34  echo "and place in the same directory as the command line tools."
35fi
Note: See TracBrowser for help on using the repository browser.