As Matthias pointed out, the JAVA_COMMAND value does not make sense.
This should contain the path to the 'java' program.
E.g something like C:\Program Files\Java\jdk1.7.0_01\bin\java.exe
In most cases just plain "java" should work.

Tomas



On Nov 16, 2012, at 1:21 AM, Matthias Berth 
<matthias.be...@gmail.com<mailto:matthias.be...@gmail.com>> wrote:

Hi,

the line

set JAVA_COMMAND=javaC:\Program Files\R\R-2.15.2\library\rJava\jri\i386

looks odd. There should be at least a space after java, maybe even some more 
text after the path. How did the original line look like?

best regards

Matthias


On Thu, Nov 15, 2012 at 12:40 PM, Penny Gilberts 
<pennygilbe...@gmail.com<mailto:pennygilbe...@gmail.com>> wrote:
I am running Java version 7 update 9.


2012/11/15 Penny Gilberts 
<pennygilbe...@gmail.com<mailto:pennygilbe...@gmail.com>>
Dear MZmine,

Unfortunately I have a problem with opening/installing the programme. I hope 
you can help me. Best regards, Penny

I am using MZmine 2.10 and R i386 2.15.2 (my computer handles also 64-bit). MS 
File Reader 2.2.62.

This is the error I get:
<image.png>

This is the script (I edited the parts in red, but I am not so sure anymore, 
because I tried a lot):



@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-2.15.2
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=%R_HOME%\library

rem Include R DLLs in PATH.
set PATH=%PATH%;%R_HOME%\bin\i386

rem The directory holding the JRI shared library (libjri.so).
set JRI_LIB_PATH=%R_LIBS_USER%\rJava\jri\i386

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=javaC:\Program Files\R\R-2.15.2\library\rJava\jri\i386

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

rem This command starts the Java Virtual Machine
%JAVA_COMMAND% %JAVA_PARAMETERS% -classpath %CLASS_PATH% %MAIN_CLASS% %*

rem If there was an error, give the user chance to see it
IF ERRORLEVEL 1 pause


------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
Mzmine-devel mailing list
Mzmine-devel@lists.sourceforge.net<mailto:Mzmine-devel@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/mzmine-devel


------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov_______________________________________________
Mzmine-devel mailing list
Mzmine-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mzmine-devel

===============================================
Tomáš Pluskal
G0 Cell Unit, Okinawa Institute of Science and Technology Graduate University
1919-1 Tancha, Onna-son, Okinawa 904-0495, Japan
WWW: https://groups.oist.jp/g0
TEL: +81-98-966-8684
Fax: +81-98-966-2890

------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
Mzmine-devel mailing list
Mzmine-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mzmine-devel

Reply via email to