Tell me more ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I try to configure the path of the osgi instance and configuration folders in order to start my Eclipse RCP application. To do that I configure the following within the tag in the jnlp file:

<!-- Information usually specified in the config.ini -->
<property name="osgi.instance.area" value="@java.io.tmpdir"/>
<property name="osgi.configuration.area" value="@java.io.tmpdir"/>

Unfortunately "java.io.tmpdir" is interpreted as a literal and not as an environment variable. Configuring the path to user.home works fine, but thats not what I want as my user home is located on a network device and my %TEMP% is located on my local drive c:

In any examples I found the configuration is as the following using user.home:

<!-- Information usually specified in the config.ini -->
<property name="osgi.instance.area" value="@user.home/Application Data/demo"/>
<property name="osgi.configuration.area" 
   value="@user.home/Application Data/demo"/>

I tried it with JDK 1.6.0_27 and 1.6.0_37 on Windows Vista.

I will be thankful for any help as I´m stuck on this issue for a while now.

share|improve this question
"Unfortunately "java.io.tmpdir" is interpreted as a literal and not as an environment variable." I think it is quite fortunate. If you could draw that data into the JNLP at run-time, it would be a security bug. – Andrew Thompson Apr 30 at 13:29
At least it´s possible with the "user.home" environment variable. – user2332631 May 3 at 8:50

1 Answer

The Eclipse runtime options document which arguments are available and which locations you can address (e.g. osgi.user.area, osgi.install.area...). Have a look at the Locations section. Beware that those locations resolve differently when starting an Eclipse RCP locally or via WebStart.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.