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 22:27
Kris De Volder is currently offline Kris De VolderFriend
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:

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 : //

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: Mon Oct 05 23:57:59 GMT 2015

Powered by FUDForum. Page generated in 0.02504 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software