Bug 138543 - [product] Product editor should allow to set the expected vm level
Summary: [product] Product editor should allow to set the expected vm level
Status: RESOLVED WONTFIX
Alias: None
Product: PDE
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.2   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: PDE-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: bugday
: 218608 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-04-25 20:53 EDT by Pascal Rapicault CLA
Modified: 2011-06-14 12:11 EDT (History)
7 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pascal Rapicault CLA 2006-04-25 20:53:05 EDT
Now that java 1.5 is becoming more widespread as an authoring language for plug-ins we should give the ability to RCP app authors to specify the minimum level of JRE required in the product file. The value  will result in setting the osgi.requiredJavaVersion property in the config.ini file.
In short what it comes down to?
A text field in the product editor where people can specify the JRE level required and the generation of the appropriate property in the config.ini.
Comment 1 Wassim Melhem CLA 2006-04-25 20:55:41 EDT
does osgi.requiredJavaVersion take a version number or an EE?
Comment 2 Pascal Rapicault CLA 2006-04-26 06:40:23 EDT
It takes a VM version number like 1.4, 1.4.2, 1.5, etc.
Comment 3 Jeff McAffer CLA 2006-04-26 10:22:23 EDT
shouldn't it take reall EE names lke J2SE-1.4?
Comment 4 Wassim Melhem CLA 2006-04-26 10:29:49 EDT
It would be a real shame if it didn't take an EE
Comment 5 Pascal Rapicault CLA 2006-04-26 12:45:54 EDT
EE is not enough. For example eclipse needs 1.4.2 and will not run properly on 1.4.1.
Comment 6 Chris Aniszczyk CLA 2007-09-05 17:59:17 EDT
Adam, here is another one for you if you desire.

A checkbox and a text value here sounds good. I would put it in the Launching tab, in the Java Runtime Environment section.
Comment 7 Adam Archer CLA 2007-09-06 11:38:38 EDT
Moving off PDE.

Back to inbox.
Comment 8 Chris Aniszczyk CLA 2007-09-06 12:00:57 EDT
Bartosz, this another interesting one possibly.
Comment 9 Adam Archer CLA 2007-09-06 12:03:40 EDT
I leave and all my work goes to Bartosz, eh?

Make PDE proud!
Comment 10 Chris Aniszczyk CLA 2007-10-05 11:53:39 EDT
Tom, what are the valid values of osgi.requiredJavaVersion?

And Why is Pascal bent on this :)?
Comment 11 Chris Aniszczyk CLA 2007-11-19 11:27:29 EST
Hey Tom, can you comment about that osgi requiredJava version capability?
Comment 12 Thomas Watson CLA 2007-11-25 18:42:13 EST
osgi.requiredJavaVersion is used to compare against the value of the java.version property supplied by the VM.  Unfortunately this value (java.version) is not well spec'ed by the VM specification.  We assume the value is a '.' separated value (e.g. 1.4.1, 1.4.2, 1.5 etc.)

If PDE was to support this then I suggest you support values of major.minor[.micro]

Is it worth it for PDE to support this config property?  Unfortunately the runtime has way too many options, trying to expose every nob and button to the user will be confusing.
Comment 13 Chris Aniszczyk CLA 2008-02-15 10:19:45 EST
*** Bug 218608 has been marked as a duplicate of this bug. ***
Comment 14 Curtis Windatt CLA 2011-06-14 12:11:11 EDT
Closing as WONTFIX.  This is not an option product developers are clamoring for.  Please reopen if you are interested in contributing a fix.