source: trunk/tools/notes.bat @ 4734

Revision 4734, 1.3 KB checked in by curtis, 11 years ago (diff)

Fix dependencies for editor, notes and ijview command line tools.

Line 
1@echo off
2
3rem notes.bat: a batch file for launching OME Notes
4
5rem Required JARs: loci_tools.jar, ome-notes.jar
6
7rem JAR libraries must be in the same directory as this
8rem command line script for the command to function.
9
10rem If you are a developer working from source and have
11rem the LOCI classes in your CLASSPATH, you can set the
12rem LOCI_DEVEL environment variable to use them instead.
13
14set PROG=loci.ome.notes.Notes
15set DIR=%~dp0
16
17if "%LOCI_DEVEL%" == "" (
18  rem Developer environment variable unset; look for proper libraries
19  if not exist "%DIR%ome-notes.jar" goto missing
20  if exist "%DIR%loci_tools.jar" goto found
21  if exist "%DIR%bio-formats.jar" goto found
22  goto missing
23) else (
24  rem Developer environment variable set; try to launch
25  java -mx512m %PROG% %*
26  goto end
27)
28
29:found
30rem Library found; try to launch
31java -mx512m -cp "%DIR%bio-formats.jar";"%DIR%loci_tools.jar";"%DIR%ome-notes.jar" %PROG% %*
32goto end
33
34:missing
35echo Required JAR libraries not found. Please download:
36echo   loci_tools.jar
37echo from:
38echo   http://www.loci.wisc.edu/ome/formats.html
39echo as well as the OME Notes JAR from:
40echo   http://www.loci.wisc.edu/software/daily/ome-notes.jar
41echo and place in the same directory as the command line tools.
42echo.
43echo Please note that OME Notes is legacy software that
44echo has been discontinued. Use at your own risk."
45
46:end
Note: See TracBrowser for help on using the repository browser.