Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » How to add environment variable to config.ini
How to add environment variable to config.ini [message #435717] Mon, 22 August 2005 15:34 Go to next message
Tong Fin is currently offline Tong Fin
Messages: 5
Registered: July 2009
Junior Member
Hi,
I would like to add an environment variable, for example
HOME_LIB=c:\mylib, to config.ini. This environment variable will be set
before my RCP is running.

What is the format of the statement to be in config.ini ?

Thanks,
Tong
Re: How to add environment variable to config.ini [message #435763 is a reply to message #435717] Tue, 23 August 2005 11:44 Go to previous messageGo to next message
Pascal Rapicault is currently offline Pascal Rapicault
Messages: 440
Registered: July 2009
Senior Member
You can not set environment variable in a config.ini.
However all the properties set in this file are available in
System.getProperties().
Note that java 1.4 do not give access to the environment variable.

HTH

PaScaL


Tong Fin wrote:
> Hi,
> I would like to add an environment variable, for example
> HOME_LIB=c:\mylib, to config.ini. This environment variable will be set
> before my RCP is running.
>
> What is the format of the statement to be in config.ini ?
>
> Thanks,
> Tong
>
Re: How to add environment variable to config.ini [message #435771 is a reply to message #435763] Tue, 23 August 2005 13:12 Go to previous messageGo to next message
Tong Fin is currently offline Tong Fin
Messages: 5
Registered: July 2009
Junior Member
My RCP application uses DLLs that need some environment variables to be
set.
Where can I set (or specify in some file ?) these env. variables so that
they will be set before the Java VM is running ?
It is OK also if I can pass the settings as the arguments of Java VM.

Regards,
Tong

Pascal Rapicault wrote:

> You can not set environment variable in a config.ini.
> However all the properties set in this file are available in
> System.getProperties().
> Note that java 1.4 do not give access to the environment variable.

> HTH

> PaScaL


> Tong Fin wrote:
>> Hi,
>> I would like to add an environment variable, for example
>> HOME_LIB=c:mylib, to config.ini. This environment variable will be set
>> before my RCP is running.
>>
>> What is the format of the statement to be in config.ini ?
>>
>> Thanks,
>> Tong
>>
Re: How to add environment variable to config.ini [message #435805 is a reply to message #435771] Wed, 24 August 2005 00:55 Go to previous message
Pascal Rapicault is currently offline Pascal Rapicault
Messages: 440
Registered: July 2009
Senior Member
In the <exe>.ini you can specify VM args, however this will require you
to use an installer to generate the proper entry in the file to indicate
the location of the dll.

If you are delivering the dlls and they are loaded from plugin code, I
would recommend you to deliver them in a plugin (for examples see the
swt plugins and fragments).

PaScaL


Tong Fin wrote:
> My RCP application uses DLLs that need some environment variables to be
> set.
> Where can I set (or specify in some file ?) these env. variables so that
> they will be set before the Java VM is running ?
> It is OK also if I can pass the settings as the arguments of Java VM.
>
> Regards,
> Tong
>
> Pascal Rapicault wrote:
>
>> You can not set environment variable in a config.ini.
>> However all the properties set in this file are available in
>> System.getProperties().
>> Note that java 1.4 do not give access to the environment variable.
>
>
>> HTH
>
>
>> PaScaL
>
>
>
>> Tong Fin wrote:
>>
>>> Hi,
>>> I would like to add an environment variable, for example
>>> HOME_LIB=c:mylib, to config.ini. This environment variable will be
>>> set before my RCP is running.
>>>
>>> What is the format of the statement to be in config.ini ?
>>>
>>> Thanks,
>>> Tong
>>>
>
>
Previous Topic:documentation for Bundle-NativeCodeos
Next Topic:org.eclipse.compare refactoring in eclipse 3.2 ??
Goto Forum:
  


Current Time: Tue Oct 21 07:27:06 GMT 2014

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

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