Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Oomph » How to set java vm in product setup
How to set java vm in product setup [message #1811189] Wed, 28 August 2019 11:03 Go to next message
torsten piotraschke is currently offline torsten piotraschkeFriend
Messages: 12
Registered: October 2017
Junior Member
I'd like to set the java version to be used in the product's page, but this doesn't work.

See attached images, for what I've got so far.

index.php/fa/36172/0/
index.php/fa/36173/0/
Re: How to set java vm in product setup [message #1811198 is a reply to message #1811189] Wed, 28 August 2019 14:34 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6483
Registered: July 2009
Senior Member
The JRETask sets the JRE to be used during Java development in an installed IDE. That's not what you want. You need to set the 'Required Java Version' attribute in your ProductVersion element to, e.g., "1.8".

Re: How to set java vm in product setup [message #1811231 is a reply to message #1811198] Thu, 29 August 2019 08:46 Go to previous messageGo to next message
torsten piotraschke is currently offline torsten piotraschkeFriend
Messages: 12
Registered: October 2017
Junior Member
If I do so, only the label of the required version gets changed. For instance, if I set it to "1.8" the "Java java11+ VM" changes to "Java 1.8+ VM". But the selection in the combo box stays on the latest selected JRE/JDK (/usr/java/jdk1.8.0_31 in the screenshot example).

I want the combobox entry to be preselected to "/usr/lib/jvm/java-11-openjdk".

[Updated on: Thu, 29 August 2019 08:47]

Report message to a moderator

Re: How to set java vm in product setup [message #1811234 is a reply to message #1811231] Thu, 29 August 2019 09:20 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 30914
Registered: July 2009
Senior Member
This is one of the very view things that is not defined via a variable that you can specialize. The value comes directly from the wizard page, and the choices in the page's combo box are computed based on the available JDK/JRE installations on the machine. The user always has the choice from among the JDKs/JREs on their machine (and of course generally each user has different ones in different locations). If you want your user to use Java 11 (why an unsupported outdated version?), you can set the 1.8 to 11.0. Note that Java changed the number schema so that 1.9 became 9.0 instead. Assuming your users all have one version of Java 11 installed, they should all end up using that version.
Re: How to set java vm in product setup [message #1811235 is a reply to message #1811234] Thu, 29 August 2019 09:28 Go to previous message
torsten piotraschke is currently offline torsten piotraschkeFriend
Messages: 12
Registered: October 2017
Junior Member
I understand. Thank you two for your insights.
Previous Topic:How to use empty redirectable catalogs for projects
Next Topic:Hosting own index
Goto Forum:
  


Current Time: Fri Feb 28 06:47:05 GMT 2020

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

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

Back to the top