Hi David, Please try running this command in the Windows command line terminal:
java -version If you get the same response, see here: http://wiki.answers.com/Q/How_do_you_stop_the_error_'java'_is_not_recognized_as_an_internal_or_external_command_operable_program_or_batch_file Tomas On Fri, Apr 26, 2013 at 9:13 AM, david.be...@csiro.au <david.be...@csiro.au> wrote: > Hi > > > > I am getting the following error > > > > “’java’ is not recognised as an internal or external command, operable > program of batch file. Press any key to continue...” > > > > The version of MZmine is 2.10 > > > > I installed JAVA SE version JRE v7, R-3.0.0 > > > > The computer is a windows 7 64 bit > > > > The bat file is > > > > @echo off > > > > rem Obtain the physical memory size > > for /f "skip=1" %%p in ('wmic os get totalvisiblememorysize') do if not > defined TOTAL_MEMORY=set TOTAL_MEMORY=%%p > > > > rem The HEAP_SIZE variable defines the Java heap size in MB. > > rem That is the total amount of memory available to MZmine 2. > > rem By default we set this to the half of the physical memory > > rem size, but feel free to adjust according to your needs. > > set /a HEAP_SIZE=%TOTAL_MEMORY% / 1024 / 2 > > > > rem Check if we are running on a 32-bit system. > > rem If yes, force the heap size to 1024 MB. > > for /f "skip=1" %%x in ('wmic cpu get addresswidth') do if not defined > ADDRESS_WIDTH set ADDRESS_WIDTH=%%x > > if %ADDRESS_WIDTH%==32 ( > > set HEAP_SIZE=1024 > > ) > > > > rem The TMP_FILE_DIRECTORY parameter defines the location where temporary > > rem files (parsed raw data) will be placed. Default is %TEMP%, which > > rem represents the system temporary directory. > > set TMP_FILE_DIRECTORY=%TEMP% > > > > rem Set R environment variables. > > set R_HOME=C:\Program Files\R\R-3.0.0 > > set R_SHARE_DIR=%R_HOME%\share > > set R_INCLUDE_DIR=%R_HOME%\include > > set R_DOC_DIR=%R_HOME%\doc > > set R_LIBS_USER=%USERPROFILE%\Documents\R\win-library\3.0 > > > > rem Include R DLLs in PATH. > > set PATH=%PATH%;%R_HOME%\bin\x64 > > > > rem The directory holding the JRI shared library (libjri.so). > > set JRI_LIB_PATH=%R_LIBS_USER%\rJava\jri\x64 > > > > rem It is usually not necessary to modify the JAVA_COMMAND parameter, but > > rem if you like to run a specific Java Virtual Machine, you may set the > > rem path to the java command of that JVM > > set JAVA_COMMAND=java > > > > rem It is not necessary to modify the following section > > set JAVA_PARAMETERS=-XX:+UseParallelGC -Djava.io.tmpdir=%TMP_FILE_DIRECTORY% > -Xms%HEAP_SIZE%m -Xmx%HEAP_SIZE%m -Djava.library.path="%JRI_LIB_PATH%" > > set CLASS_PATH=lib\MZmine-2.10.jar > > set MAIN_CLASS=net.sf.mzmine.main.MZmineCore > > > > rem Show java version, in case a problem occurs > > %JAVA_COMMAND% -version > > > > I hope that you can help! > > > > Regards > > > > David Beale > > CSIRO Research Scientist > > > > Urban Water Systems Engineering > > Land and Water > > CSIRO > > > > E david.be...@csiro.au T +61 3 9252 6602 M +61 409 259 313 > > P.O Box 56 (37 Graham Road), Highett VIC 3190, Australia > > Highett VIC 3190 > > > > PLEASE NOTE > > The information contained in this email may be confidential or privileged. > Any unauthorised use or disclosure is prohibited. If you have received this > email in error, please delete it immediately and notify the sender by return > email. Thank you. To the extent permitted by law, CSIRO does not represent, > warrant and/or guarantee that the integrity of this communication has been > maintained or that the communication is free of errors, virus, interception > or interference. > > > > Please consider the environment before printing this email. > > ------------------------------------------------------------------------------ Try New Relic Now & We'll Send You this Cool Shirt New Relic is the only SaaS-based application performance monitoring service that delivers powerful full stack analytics. Optimize and monitor your browser, app, & servers with just a few lines of code. Try New Relic and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr _______________________________________________ Mzmine-devel mailing list Mzmine-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mzmine-devel