Bug 323619 - Support for adding a VM to "Installed JREs" and "Execution Environments" even if it doesn't run on the current machine
Summary: Support for adding a VM to "Installed JREs" and "Execution Environments" even...
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 3.7   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Debug-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2010-08-25 10:56 EDT by Markus Keller CLA
Modified: 2023-08-17 00:05 EDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Keller CLA 2010-08-25 10:56:33 EDT
Add better support in the UI for adding a VM to "Installed JREs" and Execution Environments" even if it doesn't run on the current machine.

Bug 189486 and bug 262542 discuss instances of this problem. Another case I had recently is that JDK 1.3 doesn't run any more on recent Linux systems.

Even if a VM can't run, it's still interesting to use its class libraries as compilation target on the build path (this should work even if the JRE is from a completely different platform).

The only way I know to add such JREs is by creating a *.ee file with mostly dummy entries, but understanding the format of those files and adding the right dummy information is just too much work. This should be added somewhere in the "Add JRE" wizard of the "Installed JREs" page (probably as a separate wizard).
Comment 1 Dani Megert CLA 2010-08-25 11:33:29 EDT
Also note that the current approach of launching the VM to detect properties can lead to issues/crashes like e.g. in the Mac case.
Comment 2 Markus Keller CLA 2011-05-02 11:02:44 EDT
> *.ee file with mostly dummy entries

Such a dummy Execution Environment description file is OK to set up a build path and compile against the EE (/org.eclipse.osgi/osgi/OSGi_Minimum-1.2.ee is such an example).

But when you try to launch a Java Application or a JUnit test from such a project, the dummy EE is also used as runtime JRE, which obviously fails. Bug 334376 would help to ease the pain.

Dummy EEs should be recognized (e.g. by the magic argument "dummy" in "-Dee.executable=dummy" ), and in that case, another JRE should be used for launching (e.g. the workspace default JRE).
Comment 3 Eclipse Genie CLA 2019-09-05 14:54:56 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 4 Sarika Sinha CLA 2019-09-05 23:30:07 EDT
Problem is not resolved, but no time to work on this!
Comment 5 Eclipse Genie CLA 2021-08-26 12:34:48 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 6 Eclipse Genie CLA 2023-08-17 00:05:18 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.