source: trunk/tools/ijview.bat @ 6002

Revision 6002, 1.3 KB checked in by curtis, 10 years ago (diff)

Fix bugs in ijview command line tool.

Line 
1@echo off
2
3rem ijview.bat: a batch file for displaying an image file in ImageJ
4rem             using the Bio-Formats Importer plugin
5
6rem Required JARs: loci_tools.jar, ij.jar
7
8rem JAR libraries must be in the same directory as this
9rem command line script for the command to function.
10
11rem If you are a developer working from source and have
12rem the LOCI classes in your CLASSPATH, you can set the
13rem LOCI_DEVEL environment variable to use them instead.
14
15set PROG=loci.plugins.importer.Importer
16set DIR=%~dp0
17
18if "%LOCI_DEVEL%" == "" (
19  rem Developer environment variable unset; look for proper libraries
20  if not exist "%DIR%ij.jar" goto missing
21  if exist "%DIR%loci_tools.jar" goto found
22  if exist "%DIR%bio-formats.jar" goto found
23  goto missing
24) else (
25  rem Developer environment variable set; try to launch
26  java -mx512m %PROG% %*
27  goto end
28)
29
30:found
31rem Library found; try to launch
32java -mx512m -cp "%DIR%bio-formats.jar";"%DIR%loci_tools.jar";"%DIR%ij.jar" %PROG% %*
33goto end
34
35:missing
36echo Required JAR libraries not found. Please download:
37echo   loci_tools.jar
38echo from:
39echo   http://www.loci.wisc.edu/bio-formats/downloads
40echo and:
41echo   ij.jar
42echo from:
43echo   http://rsb.info.nih.gov/ij/upgrade/
44echo and place in the same directory as the command line tools.
45
46:end
Note: See TracBrowser for help on using the repository browser.