Mailing list - Entries of 2005


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

[qftestJUI] Passing args to JVM


  • Subject: [qftestJUI] Passing args to JVM
  • From: "Shlomit Becker" <Shlomit.Becker@?.com>
  • Date: Wed, 13 Apr 2005 14:19:43 +0200

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


Videos Downloads Documentation Buy Free Trial