Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Setting an environment variable from p2.inf?
Setting an environment variable from p2.inf? [message #1353393] Tue, 13 May 2014 18:27
Kris De Volder is currently offline Kris De Volder
Messages: 5
Registered: August 2012
Junior Member
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.
Previous Topic:RCP product per command line
Next Topic:Trying to debug someone else's use of p2
Goto Forum:
  


Current Time: Wed Jul 30 05:16:10 EDT 2014

Powered by FUDForum. Page generated in 0.01402 seconds