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
tab.

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:
/Users/andrew/Eclipse/Installations/Eclipses/eclipse/p2/org.eclipse.equinox.p2.engine/profileRegistry/SDKProfile.profile/.lock
(Permission denied)
	at org.eclipse.equinox.internal.p2.engine.ProfileLock.lock(ProfileLock.java:106)
	at org.eclipse.equinox.internal.p2.engine.SimpleProfileRegistry.restore(SimpleProfileRegistry.java:441)
	at org.eclipse.equinox.internal.p2.engine.SimpleProfileRegistry.getProfileMap(SimpleProfileRegistry.java:277)
	at org.eclipse.equinox.internal.p2.engine.SimpleProfileRegistry.internalGetProfile(SimpleProfileRegistry.java:238)
	at org.eclipse.equinox.internal.p2.engine.SimpleProfileRegistry.getProfile(SimpleProfileRegistry.java:168)
	at org.eclipse.equinox.internal.p2.ui.sdk.PreloadingRepositoryHandler.execute(PreloadingRepositoryHandler.java:57)
	</snip>

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.data.area=/Applications/eclipse/p2/
> -Declipse.p2.profile=SDKProfile
>
> HTH
>
> On 2011-10-13, at 2:27 PM, Andrew Eisenberg wrote:
>
>> I am working on a patch for
>> https://bugs.eclipse.org/bugs/show_bug.cgi?id=332158.  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
>> https://dev.eclipse.org/mailman/listinfo/p2-dev
>
>


Back to the top