Mailing list - Entries of 2005


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [qftestJUI] Passing args to JVM


  • Subject: Re: [qftestJUI] Passing args to JVM
  • From: Gregor Schmid <Gregor.Schmid@?.de>
  • Date: Thu, 14 Apr 2005 08:22:01 -0000

Hello Shlomit,

java doesn't understand the syntax

java -classpath=C:\...

The correct form is

java -classpath C:\...

So you need to change the qftestJUI call to

%QFTEST_DIR% -batch -J-classpath -J%CP% -runlog=%RUN_LOG% -report.html="%REPORT_FILE% %FULL_TEST_PATH%

Best regards,
    Greg

"Shlomit Becker" <Shlomit.Becker@?.com> writes:

>    I am trying to pass the an argument to the jvm from the command line
>    and it is not working. I have looked at chapter 16, but I must be
>    doing something wrong.
>
>
>
>    For example here I am trying to pass in the classpath with
>    -J-classpath as it says in chapter 16. My batch file runs when I just
>    remove the "J-classpath=%CP%", but when I add it in and run I get an
>    error that says cannot create the java virtual machine.
>
>
>
>    From my batch file:
>
>
>
>    set QFTEST_DIR="C:\\Program
>    Files\\qfs\\qftest\\qftestJUI-1.06.2\\bin\\qftestJUI.exe"
>
>    set FULL_TEST_PATH="C:\Program Files\qfs\qftest\\TestRegression.qft"
>
>    set REPORT_FILE="C:\Program Files\qfs\TestRegression.html"
>
>    set RUN_LOG="C:\Program Files\qfs\runlog.qrl"
>
>    set
>    CP=C:\j2sdk1.4.2_01\jre\lib\charsets.jar;C:\j2sdk1.4.2_01\jre\lib\jce.
>    jar;C:\j2s......(etc., it is long)
>
>
>
>
>
>    %QFTEST_DIR% -batch -J-classpath=%CP% -runlog=%RUN_LOG%
>    -report.html="%REPORT_FILE% %FULL_TEST_PATH%
>
>
>
>    In my test I have a Start Java SUT Client node.
>
>
>
>    Thanks,
>
>    Shlomit

--
Gregor Schmid                                Gregor.Schmid@?.de
Quality First Software GmbH                     http://www.qfs.de
Tulpenstr. 41                                Tel: +49 8171 919870
DE-82538 Geretsried                          Fax: +49 8171 919876


Videos Downloads Documentation Buy Free Trial