Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Oomph » Importing projects with different Java-Version
Importing projects with different Java-Version [message #1714281] Wed, 11 November 2015 10:03 Go to next message
Maksim Melnik is currently offline Maksim MelnikFriend
Messages: 52
Registered: August 2015
Member
Given i have a setup task , which imports multiple projects. Each of them requires a certain java version.

My idea would be to create variables with paths to different java JDKs and then tell the project import task to set the appropriate java path for a specific project.

Now my question is, is it possible to tell the projects import task to set the java path for a specific project ?

[Updated on: Wed, 11 November 2015 10:04]

Report message to a moderator

Re: Importing projects with different Java-Version [message #1714290 is a reply to message #1714281] Wed, 11 November 2015 12:06 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33258
Registered: July 2009
Senior Member
Maksim,

Comments below.


On 11/11/2015 11:03 AM, Maksim Melnik wrote:
> Given i have a project consisting of multiple projects. Each of them
> requires a certain java version.
Typically that's a minimum requirement, not a strict requirement.
>
> My idea would be to create variables with paths to different java JDKs
> and then tell the project import task to set the appropriate java path
> for a specific project.
How is the project import task involved? Isn't a JRE task sufficient?
>
> Now my question is, is it possible to tell the projects import task to
> set the java path for a specific project ?
Normally projects specify a BREE and based on the available JREs they
are bound to the best match.


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Importing projects with different Java-Version [message #1714299 is a reply to message #1714290] Wed, 11 November 2015 14:42 Go to previous messageGo to next message
Maksim Melnik is currently offline Maksim MelnikFriend
Messages: 52
Registered: August 2015
Member
So you want to say, that if I input several JREs as JRE tasks, then each project will be bound to the best match ?
Re: Importing projects with different Java-Version [message #1714313 is a reply to message #1714299] Wed, 11 November 2015 16:46 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33258
Registered: July 2009
Senior Member
Maksim,

Yes, that's generally JDT's behavior. It's very hard to find old JDKs
these days though, so I'm not sure specifically what your concern is.
Most people just get a JDK/JRE 1.8 and use it for everything. There
are EE profiles that can check that you aren't using features
(methods/classes) of a newer JRE that aren't present in the BREE's exact
JRE.


On 11/11/2015 3:42 PM, Maksim Melnik wrote:
> So you want to say, that if I input several JREs as JRE tasks, then
> each project will be bound to the best match ?


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Importing projects with different Java-Version [message #1714315 is a reply to message #1714313] Wed, 11 November 2015 16:53 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6692
Registered: July 2009
Senior Member
Hi,

I think if a project needs a specific JRE then that should be configured in the project's Properties dialog (right-click
on the project). I've attached a screenshot...

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper



Am 11.11.2015 um 17:46 schrieb Ed Merks:
> Maksim,
>
> Yes, that's generally JDT's behavior. It's very hard to find old JDKs these days though, so I'm not sure
> specifically what your concern is. Most people just get a JDK/JRE 1.8 and use it for everything. There are EE
> profiles that can check that you aren't using features (methods/classes) of a newer JRE that aren't present in the
> BREE's exact JRE.
>
>
> On 11/11/2015 3:42 PM, Maksim Melnik wrote:
>> So you want to say, that if I input several JREs as JRE tasks, then each project will be bound to the best match ?
>


Previous Topic:Oomph Version Management - How to ?
Next Topic:How-to create a Setup model which allows to switch between streams and change Xtext version?
Goto Forum:
  


Current Time: Sat Dec 07 15:47:11 GMT 2024

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

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

Back to the top