Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 28340 - Ablitity to set environment variables when launching java vm
Summary: Ablitity to set environment variables when launching java vm
Status: RESOLVED DUPLICATE of bug 10035
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 2.0.2   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: 3.0   Edit
Assignee: Jared Burns CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-12-15 11:34 EST by Kenneth Olson CLA
Modified: 2003-05-15 16:46 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kenneth Olson CLA 2002-12-15 11:34:13 EST
While Java programs cannot access environment variables, jni dlls and libraries 
can. The behavior of some commercial instrumentation packages, such as 
Compuware NuMega's DevPartner Java Edition v3.0, are entirely configured via 
environment variables that are read by a jvmpi dll these products load using 
the -Xrun option.

Even if environment variables are not revealed on a launch configuration tab, 
the ability to programatically set them through the IVMRunner interface would 
greatly facilitate interacting with such (jni) programs and avoid needless 
customization or copying of JDT logic or resorting to jni dlls loaded within 
Eclipse.

Please consider extending the IVMRunner interface with an overloaded "run" 
method that accepts an environment array passed to AbstractVMRunner "exec" or 
some equivalent mechanism.
Comment 1 Darin Wright CLA 2002-12-16 09:26:26 EST
Although this could be added as a non-breaking API change (2.1 does must be 
backwards compatible with 2.0), it would be a breaking change in terms of 
behavior. We would need to add env vars to the VMRunnerConfiguration, but it 
would be up to the implementations of IVMRunner to know they exist - and 
existing implementations would know to honor the setting.

Marking as "later" for now. 
Comment 2 Darin Wright CLA 2003-05-15 16:03:10 EDT
Open for 3.0
Comment 3 Darin Wright CLA 2003-05-15 16:03:35 EDT
Jared, do you plan to add env vars to the java launch configs?
Comment 4 Jared Burns CLA 2003-05-15 16:46:25 EDT
Yep. Support for variables will be added to JDT and Debug launch
configs once the generic support is finished.

*** This bug has been marked as a duplicate of 10035 ***