Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » How to specify a file in the config.ini file
How to specify a file in the config.ini file [message #461002] Wed, 03 January 2007 14:29 Go to next message
Jean-Michael Legait is currently offline Jean-Michael LegaitFriend
Messages: 11
Registered: July 2009
Junior Member
Hi!

I have implemented my own RCP application.
Now, I need to specify in the VM Arguments of the .product :
<b>-Djava.security.policy=my.java.policy</b>

But, I need to export the file my.java.policy like this:

-MyApplication
|
...
|
|-config.ini
|-<b>my.java.policy</b>
|--plugins directory
| |------>A plugin
| |------>Another plugin
...

How to do that?
Do you have an idea?

Thanks,
Regards,

Jean-Michael
Re: How to specify a file in the config.ini file [message #461007 is a reply to message #461002] Wed, 03 January 2007 15:01 Go to previous messageGo to next message
Alex Blewitt is currently offline Alex BlewittFriend
Messages: 946
Registered: July 2009
Senior Member
Any files will be relative to the position of the 'eclipse' executable. So, if your entries are like:

eclipse.exe
configuration\config.ini
configuration\my.java.policy

then you would be able to refer to it as configuration\my.java.policy

Alex.
Re: How to specify a file in the config.ini file [message #461011 is a reply to message #461007] Wed, 03 January 2007 15:41 Go to previous messageGo to next message
Jean-Michael Legait is currently offline Jean-Michael LegaitFriend
Messages: 11
Registered: July 2009
Junior Member
Hi Alex!

I have tried to do what you say.
I have put my file 'my.java.policy' in the configuration directory of my exported product.
Next, I have written in the config.ini:
-Djava.security.policy=configuration\my.java.policy

And, I launch my application, but it doesn't find my 'my.java.policy' file.

How to specify to Eclipse where to search my file?
Or, Where must I put my file?

Thanks,
Regards,

Jean-Michael
Re: How to specify a file in the config.ini file [message #461036 is a reply to message #461011] Thu, 04 January 2007 10:36 Go to previous messageGo to next message
Jean-Michael Legait is currently offline Jean-Michael LegaitFriend
Messages: 11
Registered: July 2009
Junior Member
Hi!
Finnaly, I have found a solution.

1) I export my product.

2) I write in the myRCPApp.ini file:
-Djava.security.policy=${user.home}/my.java.policy

3) I put my file 'my.java.policy' in the home directory.

And, all seems to work!

But in Eclipse, if I add '-Djava.security.policy=${user.home}/my.java.policy' in the VM Arguments window of my product. And, I test in Eclipse with the 'Launch the product' action, a window appears with this message : 'Reference to undefined variable user.home'

Eclipse doesn't know the user.home variable???
Do you have an idea?
How can I set user.home in Eclipse??

Thanks,
Regards,

Jean-Michael
Re: How to specify a file in the config.ini file [message #461040 is a reply to message #461036] Thu, 04 January 2007 11:06 Go to previous message
Alex Blewitt is currently offline Alex BlewittFriend
Messages: 946
Registered: July 2009
Senior Member
In the launch configuration (Run -> Run...) you can have edit the launch; one of the tabs is 'environment' which allows you to supply values of e.g. user.home.

Alex.
Previous Topic:StreamCorruptedException ?
Next Topic:SWT_AWT bridge usage
Goto Forum:
  


Current Time: Tue Apr 23 08:29:42 GMT 2024

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

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

Back to the top