Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [p2-dev] Cannot install features into a runtime workbench

Thanks, but this is actually not working for me. I've gotten a bit
closer in that now the features are listed in the installed software

But, in order to reproduce the bug, I need to run my workbench with
the install directory being read-only (ie- simulating the situation
where someone installs Eclipse into /opt or C:\Program Files).  When I
launch the workbench in read-only mode and click "Install new
software", I get this exception:

java.lang.IllegalStateException: Profile not locked due to exception:
(Permission denied)
	at org.eclipse.equinox.internal.p2.engine.ProfileLock.lock(
	at org.eclipse.equinox.internal.p2.engine.SimpleProfileRegistry.restore(
	at org.eclipse.equinox.internal.p2.engine.SimpleProfileRegistry.getProfileMap(
	at org.eclipse.equinox.internal.p2.engine.SimpleProfileRegistry.internalGetProfile(
	at org.eclipse.equinox.internal.p2.engine.SimpleProfileRegistry.getProfile(
	at org.eclipse.equinox.internal.p2.ui.sdk.PreloadingRepositoryHandler.execute(

And the Install manager silently does not open.

I'm guessing that there is something that needs to be specified
differently, but not sure what it is.

On Thu, Oct 13, 2011 at 11:34 AM, Pascal Rapicault <pascal@xxxxxxxxxxxx> wrote:
> Disable this option and instead point your runtime workbench to an eclipse install that is in the desired starting state by setting the following VM properties (make sure to adjust the value of the properties)
> -Declipse.p2.profile=SDKProfile
> On 2011-10-13, at 2:27 PM, Andrew Eisenberg wrote:
>> I am working on a patch for
>>  I am trying to
>> reproduce the problem in a runtime workspace.  (This is the problem
>> where trying to install into a Shared Install fails, but the error
>> message is confusing).
>> For this, in my launch configuration, I have checked "Support software
>> installation in the launched application".  Also, in the plug-ins tab,
>> I have selected all features.
>> Then, when I launch the runtime workbench and go to About Eclipse ->
>> Installation Details -> Installed software, the page is blank.  This
>> seems to be causing feature-based installs to fail since the runtime
>> workbench does not think there are any features installed.  Hence, I
>> cannot reproduce this bug in a runtime workbench.
>> Does anyone have any suggestions?
>> thanks,
>> Andrew
>> _______________________________________________
>> p2-dev mailing list
>> p2-dev@xxxxxxxxxxx

Back to the top