Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » RCP Testing Tool » Use a specific autVM with the maven plugin.
Use a specific autVM with the maven plugin. [message #1700778] Tue, 07 July 2015 07:25 Go to next message
Marcel Hein is currently offline Marcel HeinFriend
Messages: 3
Registered: July 2015
Junior Member
Hi.

Knows anyone here how I can set a specific Vm for the AUT with the maven plugin?

Re: Use a specific autVM with the maven plugin. [message #1700793 is a reply to message #1700778] Tue, 07 July 2015 09:14 Go to previous messageGo to next message
Ulyana Skorokhodova is currently offline Ulyana SkorokhodovaFriend
Messages: 280
Registered: July 2014
Senior Member
Hi Marcel,

Please use this example:

<aut>
<vmArgs>
<vmArg>-Xmx768m</vmArg>
<vmArg>-XX:MaxPermSize=256m</vmArg>
</vmArgs>
</aut>

Kind regards,
Ulyana.
Re: Use a specific autVM with the maven plugin. [message #1700933 is a reply to message #1700793] Wed, 08 July 2015 09:34 Go to previous messageGo to next message
Marcel Hein is currently offline Marcel HeinFriend
Messages: 3
Registered: July 2015
Junior Member
Hi Ulyana,

I already tried this example an it doesn't work.

Kind regards,
Marcel
Re: Use a specific autVM with the maven plugin. [message #1700950 is a reply to message #1700933] Wed, 08 July 2015 11:28 Go to previous messageGo to next message
Bastian Wagenfeld is currently offline Bastian WagenfeldFriend
Messages: 183
Registered: January 2013
Senior Member
Hi,

I think it wasn't about setting VM arguments, but about setting an VM. It should be the Maven counterpart to the command line argument
-autVM <PathToJava>


Best regards
Bastian
Re: Use a specific autVM with the maven plugin. [message #1704083 is a reply to message #1700950] Fri, 07 August 2015 08:41 Go to previous messageGo to next message
Bastian Wagenfeld is currently offline Bastian WagenfeldFriend
Messages: 183
Registered: January 2013
Senior Member
Hi all,

since I don't have a Maven based solution for this, I wanted to update this topic.

I tried to set the following parameter in my pom:
<aut>
  <args>
    <arg>-autVM  ${JAVA_VM_PATH}</arg>
  </args>
</aut>


This does not work for me. Is that the wrong usage of the parameter?

Best regards and thanks for any kind of help!
Bastian
Re: Use a specific autVM with the maven plugin. [message #1712671 is a reply to message #1704083] Tue, 27 October 2015 12:06 Go to previous messageGo to next message
Jonas Älmeblad is currently offline Jonas ÄlmebladFriend
Messages: 3
Registered: October 2014
Junior Member
HI,

Did you find any solution for this? I am having the same problem and I need to specify what JVM that should be used.

Best regards
Jonas
Re: Use a specific autVM with the maven plugin. [message #1712765 is a reply to message #1704083] Wed, 28 October 2015 07:43 Go to previous messageGo to next message
Ulyana Skorokhodova is currently offline Ulyana SkorokhodovaFriend
Messages: 280
Registered: July 2014
Senior Member
Hi Bastian,

Could you please try the following way:

<aut>
<args>
<arg>-vm ${JAVA_VM_PATH}</arg>
</args>
</aut>

Kind regards,
Ulyana.
Re: Use a specific autVM with the maven plugin. [message #1715368 is a reply to message #1712765] Mon, 23 November 2015 03:29 Go to previous messageGo to next message
Ulyana Skorokhodova is currently offline Ulyana SkorokhodovaFriend
Messages: 280
Registered: July 2014
Senior Member
Hi Bastian, Marcel,

Any update on this?
Did the solution work?

Kind regards,
Ulyana.
Re: Use a specific autVM with the maven plugin. [message #1715978 is a reply to message #1715368] Mon, 30 November 2015 04:05 Go to previous messageGo to next message
Vasili Gulevich is currently offline Vasili GulevichFriend
Messages: 28
Registered: July 2009
Junior Member
I believe it should be:
<aut>
  <vm>.../java.exe</vm>
</aut>
Re: Use a specific autVM with the maven plugin. [message #1719103 is a reply to message #1715978] Tue, 05 January 2016 09:47 Go to previous messageGo to next message
jeremie gr is currently offline jeremie grFriend
Messages: 41
Registered: June 2015
Member
Hi,

have you find solution because I try to do same thing ?

I would like to request a specific VM java for Script RCP TT, like 32bit.



thanks,

jeremie
Re: Use a specific autVM with the maven plugin. [message #1726924 is a reply to message #1719103] Thu, 17 March 2016 13:41 Go to previous messageGo to next message
jeremie gr is currently offline jeremie grFriend
Messages: 41
Registered: June 2015
Member
hi,

I didn't find a solution.

Have you find solution ? please.

thanks,

jeremie
Re: Use a specific autVM with the maven plugin. [message #1727259 is a reply to message #1726924] Mon, 21 March 2016 15:47 Go to previous messageGo to next message
Andrey Sobolev is currently offline Andrey SobolevFriend
Messages: 75
Registered: February 2015
Member
Hi,

I've looked at code,

<aut>
  <vm>.../java_home</vm>
</aut>


/runner/org.eclipse.rcptt.runner/src/org/eclipse/rcptt/runner/util/AUTsManager.java:getAutVm

Should work fine.
Re: Use a specific autVM with the maven plugin. [message #1727525 is a reply to message #1727259] Wed, 23 March 2016 14:07 Go to previous messageGo to next message
jeremie gr is currently offline jeremie grFriend
Messages: 41
Registered: June 2015
Member
hi,

thanks about your answer but I wrote this in my POM.xml

 <aut>
                <!-- Define the AUT identification, based on maven identification -->
                <groupId>com.all4tec</groupId>
                <artifactId>com.all4tec.matelo.rcp</artifactId>
				<classifier>${projet.arch}</classifier>
				<version>${projet.version}</version>
				<args>
					<arg>-data</arg>
					<arg>@noDefault</arg>
					<arg>-Xmx2048m</arg>
                    <arg>-XX:MaxPermSize=2048m</arg>
					<arg>-XX:-UseGCOverheadLimit</arg>
					<arg>-vm  C:\Program Files (x86)\Java\jre1.8.0_45\bin\javaw.exe</arg>
				</args>
				 <!-- Add the Squash feature in the AUT -->
                <!-- The feature name is not given, to ensure all the feature of the repository will be installed.
                    This is mandatory because RCP TT does not make the feature resolution -->
                	<vm>C:\Program Files (x86)\Java\jre1.8.0_45\bin\javaw.exe</vm>
            </aut>



and it's not work , I have this error "AUT-0: Launch failed. Reason: FAIL: AUT requires 32 bit Java VM which cannot be found."

I don't if I understand your answer or if I do something wrong.

jeremie
Re: Use a specific autVM with the maven plugin. [message #1730203 is a reply to message #1700778] Fri, 22 April 2016 10:05 Go to previous message
Elise Ruelle is currently offline Elise RuelleFriend
Messages: 74
Registered: April 2013
Member
Hi everyone,

I was facing the same problem and I've tried the proposition of Andrey and it works for me (when I finally understand his solution Laughing )

I will try to give you additional information that I needed.
The argument <vm> must be under <aut> and the path is until the jre folder.

So the result, is the following for the description of the AUT.


         <aut>
                <!-- Define the AUT identification, based on maven identification -->
                <groupId>${group}</groupId>
                <artifactId>${artifact}</artifactId>
		<classifier>${projet.classifier}</classifier>
		<version>${projet.version}</version>
		
                <!-- Path to the JVM : C:\Program Files (x86)\Java\jdk1.8.x\jre -->
                <vm>${jvm.path}</vm>
	        <args>
			<arg>-data</arg>
			<arg>@noDefault</arg>
			<arg>-Xmx2048m</arg>
                        <arg>-XX:MaxPermSize=2048m</arg>
			<arg>-XX:-UseGCOverheadLimit</arg>                    
		</args>
         </aut>


I hope this post will be useful !


Elise Ruelle

ALL4TEC
Previous Topic:Unable to launch the application from RCPTT IDE
Next Topic:Can't add bundle pool based installation as AUT
Goto Forum:
  


Current Time: Tue Apr 23 17:52:08 GMT 2024

Powered by FUDForum. Page generated in 0.03717 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top