Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » IAM (Eclipse Integration for Apache Maven) » java version used by IAM?
java version used by IAM? [message #571053] Thu, 29 October 2009 21:24 Go to next message
Ashish Joshi is currently offline Ashish JoshiFriend
Messages: 2
Registered: July 2009
Junior Member
Hi,

Maven uses the JAVA_HOME for all execution activities.

What is the corresponding Java Runtime environment that IAM uses during execution?


I am using IAM 0.9 within RAD 7.5.

The "Installed JRE" in preferences is pointing to 1.5. version.
The Java_Home is pointing to 1.5 JDK version
The compiler plugin within POM is configured to use 1.5 version

However when enforcer:display-info goal is executed, it shows up the jdk as 1.6 version. The output line is

JDK Version: 1.6.0 normalized as: 1.6.0

RAD itself runs with a JRE of 1.6. So is that the one that is being picked up?

Is there a way to configure IAM to use a specific JRE?



Regards,
Ashish
Re: java version used by IAM? [message #571074 is a reply to message #571053] Fri, 30 October 2009 18:01 Go to previous message
Carlos Sanchez is currently offline Carlos SanchezFriend
Messages: 114
Registered: July 2009
Senior Member
IAM uses the same Java that Eclipse is running, because it runs Maven
in-process, without forking the JVM
You can configure some plugins to fork and use different Java version,
like the Compiler or Surefire plugins if you need to.

http://maven.apache.org/plugins/maven-compiler-plugin/exampl es/compile-using-different-jdk.html

http://maven.apache.org/plugins/maven-surefire-plugin/test-m ojo.html#jvm


Some previous info about it
http://groups.google.com/group/q4e-users/msg/75884e3cf07d8f5 b


On 10/29/09 2:24 PM, Ashish Joshi wrote:
> Hi,
>
> Maven uses the JAVA_HOME for all execution activities.
>
> What is the corresponding Java Runtime environment that IAM uses during
> execution?
>
> I am using IAM 0.9 within RAD 7.5.
> The "Installed JRE" in preferences is pointing to 1.5. version.
> The Java_Home is pointing to 1.5 JDK version
> The compiler plugin within POM is configured to use 1.5 version
>
> However when enforcer:display-info goal is executed, it shows up the jdk
> as 1.6 version. The output line is
> JDK Version: 1.6.0 normalized as: 1.6.0
> RAD itself runs with a JRE of 1.6. So is that the one that is being
> picked up?
>
> Is there a way to configure IAM to use a specific JRE?
>
>
>
> Regards,
> Ashish
Previous Topic:java version used by IAM?
Next Topic:Picking up wrong version of dependency if dependent project open
Goto Forum:
  


Current Time: Thu Mar 28 10:14:51 GMT 2024

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

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

Back to the top