Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [swtbot-dev] Problem while running SWTBot Test cases from command prompt

On 03/15/2012 05:20 PM, Talwalkar, Saurabh wrote:

Hi,

I am able to create and run SWBot test cases from eclipse IDE. I want to do the same thing from the command prompt. I followed the instructions at : http://wiki.eclipse.org/SWTBot/Ant

I am using eclipse 3.6 and SWTBot 2.0.5 and my Java version is 1.7.0_01.

 

When I issue the command :

java -Xms256M -Xmx768M -XX:MaxPermSize=512M -classpath %ECLIPSE_HOME%/plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar;org.eclipse.core.launcher.Main;%ECLIPSE_HOME%/plugins  -application org.eclipse.swtbot.eclipse.junit4.headless.swtbottestapplication  -product %TEST_PRODUCT_ID%  -data %WORKSPACE%  ormatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,%ECLIPSE_HOME%/%TEST_CLASS%.xml  formatter=org.apache.tools.ant.taskdefs.optional.junit.PlainJUnitResultFormatter  -testPluginName%TEST_PLUGIN_ID%  -className %TEST_CLASS%  -os %OS% -ws WS% -arch %ARCH%  -consoleLog –debug

 

I see the message:

Unrecognized option: -application

Error: Could not create the Java Virtual Machine.

Error: A fatal exception has occurred. Program will exit.

 

what are those semicolons (;) you use after specifying your classpath? org.eclipse.core.launcher.Main must be separated from classpath with a space.
I more generally use "java -jar plugins/org.eclipse.equinox.launcher_*.jar -application ...."

HTH
--
Mickael Istria
Eclipse developer at JBoss, by Red Hat
My blog - My Tweets

Back to the top