Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Question about environment variable
Question about environment variable [message #394451] Thu, 18 November 2004 15:01 Go to next message
Eclipse UserFriend
Hello,



I have written an RCP application which loads a file using the location
specified using an environment variable.



When I try to run this RCP application using the workbench Run method – I
can specify this environment variable value using the –D option in VM
Arguments – and the application runs fine.



Now I have exported the application and want to run it standalone. How
should I specify this variable?



I have tried setting it at global level on my windows user defined
variables. I tried setting this variable in the command using set method
before invoking javaw. I have tried using –D option while invoking javaw
to run the RCP.



None of these seem to work. What might be the best way to solve this
problem?



Thanks,

Sumitabh
Re: Question about environment variable [message #394471 is a reply to message #394451] Thu, 18 November 2004 21:27 Go to previous messageGo to next message
Eclipse UserFriend
If you don't need to access the property before your application is
started, try to set the value in the config.ini.

Note that I'm suprise that passing the arg on the command line did not
work. Normally you should have specified (vmargs must be at the end):
eclipse <various options> -vmargs -DmyProperty=theValue

<various options> are options that are passed to the eclipse.

HTH,

PaScaL

Sumitabh Kansal wrote:
> Hello,
>
>
>
> I have written an RCP application which loads a file using the location
> specified using an environment variable.
>
>
>
> When I try to run this RCP application using the workbench Run method �
> I can specify this environment variable value using the �D option in VM
> Arguments � and the application runs fine.
>
>
>
> Now I have exported the application and want to run it standalone. How
> should I specify this variable?
>
>
> I have tried setting it at global level on my windows user defined
> variables. I tried setting this variable in the command using set method
> before invoking javaw. I have tried using �D option while invoking javaw
> to run the RCP.
>
>
>
> None of these seem to work. What might be the best way to solve this
> problem?
>
>
>
> Thanks,
>
> Sumitabh
>
>
Re: Question about environment variable [message #394678 is a reply to message #394471] Fri, 19 November 2004 10:34 Go to previous message
Eclipse UserFriend
Thanks Pascal,

I added it in config.ini file and it works now. I just have to use double
backslash as the file separator. Also I think I was not specifying the
vmargs at the end - I will try that.

Sumitabh

Pascal Rapicault wrote:

> If you don't need to access the property before your application is
> started, try to set the value in the config.ini.

> Note that I'm suprise that passing the arg on the command line did not
> work. Normally you should have specified (vmargs must be at the end):
> eclipse <various options> -vmargs -DmyProperty=theValue

> <various options> are options that are passed to the eclipse.

> HTH,

> PaScaL

> Sumitabh Kansal wrote:
>> Hello,
>>
>>
>>
>> I have written an RCP application which loads a file using the location
>> specified using an environment variable.
>>
>>
>>
>> When I try to run this RCP application using the workbench Run method ?
>> I can specify this environment variable value using the ?D option in VM
>> Arguments ? and the application runs fine.
>>
>>
>>
>> Now I have exported the application and want to run it standalone. How
>> should I specify this variable?
>>
>>
>> I have tried setting it at global level on my windows user defined
>> variables. I tried setting this variable in the command using set method
>> before invoking javaw. I have tried using ?D option while invoking javaw
>> to run the RCP.
>>
>>
>>
>> None of these seem to work. What might be the best way to solve this
>> problem?
>>
>>
>>
>> Thanks,
>>
>> Sumitabh
>>
>>
Previous Topic:Trouble with Dinamic Help System
Next Topic:Compatibility with Windows XP SP2
Goto Forum:
  


Current Time: Sat Nov 08 05:52:47 EST 2025

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

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

Back to the top