equinox launcher and environment variables [message #653829] |
Fri, 11 February 2011 13:10 |
Thomas Messages: 151 Registered: July 2009 |
Senior Member |
|
|
Hi all,
I would like to set various environment vars (e.g. Path/LD_LIBRARY_APTH)
during startup of my rcp application. What I did so far to achieve this,
without needing to add a batch/shell script, is to extend the
org.eclipse.equinox.launcher bundle. I added my own CustomMain class and
changed the Manifest to point to this class. Furthermore, the CustomMain
extends org.eclipse.equinox.launcher.Main and overrides the run(String[]
args) method. In that method I set my environment vars using JNA. This seems
to work, cause if I call System.getenv() in one of my RCP bundles, the vars
are set.
So far so good. Unfortunately, my native libs, which I want to call via JNI
and that are referenced by the env vars, can still not be resolved in my
application. I thought, that the launcher Main starts the VM via JNI and
passes all the env vars that are present at this point in time. Any ideas?
What am I missing?
Regards,
Thomas.
|
|
|
|
Powered by
FUDForum. Page generated in 0.03538 seconds