Setting an environment variable from p2.inf? [message #1353393] |
Tue, 13 May 2014 18:27 |
Eclipse User |
|
|
|
I need to be able to set environment variable SWT_GTK3=0 from a p2.inf in a plugin or feature.
Is this possible? How?
I looked/googled around on how to do this and found some info here:
https://wiki.eclipse.org/Equinox/p2/Engine/Touchpoint_Instructions_35
I can use that to add JVM arguments like -Dprop=val, but can't find how to set environment variables.
For some background on why I need this see:
https : //issuetracker.springsource.com/browse/STS-3829
and https://bugs.eclipse.org/bugs/show_bug.cgi?id=420182
In short, when we install our bundle using JavaFX we need to make sure that GTK2 is being used. It seems the only way to do that is by setting that particular env variable.
In other words, when our bundle gets installed, we have to make sure the environment variable is set. Otherwise the JVM will crash.
|
|
|
Powered by
FUDForum. Page generated in 0.05808 seconds