Skip to main content


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 FinFriend
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 RapicaultFriend
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 FinFriend
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 RapicaultFriend
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: Fri Apr 19 04:07:17 GMT 2024

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

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

Back to the top