Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Plugin Problems(Having several issues with installing plugins.)
Plugin Problems [message #523944] Mon, 29 March 2010 23:38 Go to next message
Lucas Lacroix is currently offline Lucas LacroixFriend
Messages: 6
Registered: March 2010
Junior Member
I am utterly confused by this issue. If I use the built-in software installation (Help -> Install New Software) to install STANDARD Eclipse plugins, ie. those from the Eclipse updates site, it completely messes up Eclipse. For instance, are installing UML2 Tools and it's requisites, any previously installed plugins stop working and all new plugins do not work. There is no indication in the error log that anything is wrong EXCEPT that Eclipse was unable to instantiate the Subclipse plugin (which is a plugin that was installed prior to installing UML2 Tools).

I then started with a clean install, figuring something in my configuration had been corrupted: I deleted the Eclipse install directory and the .eclipse folder in my user profile. Unzipped Eclipse, ran it, installed JUST the UML2 Tools. Everything is installed and listed under installed features and plugins, but none of the menus, UI elements, wizards, etc. show in Eclipse.

I have Java 1.6.0.18 installed on Windows 7 Ultimate 64-bit. I do have both 64-bit and 32-bit versions, but Eclipse is using the 32-bit version of Java.

I can manually install plugins, or install Subclipse via Install New Software, but anything from Eclipse just breaks. Is it possible that Eclipse is trying to pull 64-bit versions of the plugins (if such a thing even exists)?
Re: Plugin Problems [message #524061 is a reply to message #523944] Tue, 30 March 2010 09:00 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 26285
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------050404070409080107060108
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

Lucas,

I saw a posting that said this on the UML2 Tools newsgroup:

Hi all,

preparing our own environment for the next Eclipse release (3.6) in
june, we also want to update all of the frameworks we have in use (GMF,
EMF, UML2, Xpand, Xtext, MWE...). Our Eclipse based product contains
also the UML2Tools. The last available version 0.9.1 from the interim
update site declares dependencies to EMF 2.5 (excluding 2.6). That's a
problem, because we have a lot of EMF based things running and we have
to work against EMF 2.6 next future.
I have seen in the CVS bundles/features with adapted version range to
EMF 2.6, OCL 3.0 etc. But there seems to be no update site containing
these artefacts?! It is possible to run a build and make the trunk
available via update site?

Thanks
Ralf

So I suspect you're installing a lot of back level versions of things
that end up wreaking havoc on the plugins that require the current
versions. Of course you don't mention where you're installing it from
or into.


Lucas Lacroix wrote:
> I am utterly confused by this issue. If I use the built-in software
> installation (Help -> Install New Software) to install STANDARD
> Eclipse plugins, ie. those from the Eclipse updates site, it
> completely messes up Eclipse. For instance, are installing UML2 Tools
> and it's requisites, any previously installed plugins stop working and
> all new plugins do not work. There is no indication in the error log
> that anything is wrong EXCEPT that Eclipse was unable to instantiate
> the Subclipse plugin (which is a plugin that was installed prior to
> installing UML2 Tools).
>
> I then started with a clean install, figuring something in my
> configuration had been corrupted: I deleted the Eclipse install
> directory and the .eclipse folder in my user profile. Unzipped
> Eclipse, ran it, installed JUST the UML2 Tools. Everything is
> installed and listed under installed features and plugins, but none of
> the menus, UI elements, wizards, etc. show in Eclipse.
>
> I have Java 1.6.0.18 installed on Windows 7 Ultimate 64-bit. I do have
> both 64-bit and 32-bit versions, but Eclipse is using the 32-bit
> version of Java.
>
> I can manually install plugins, or install Subclipse via Install New
> Software, but anything from Eclipse just breaks. Is it possible that
> Eclipse is trying to pull 64-bit versions of the plugins (if such a
> thing even exists)?

--------------050404070409080107060108
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Lucas,<br>
<br>
I saw a posting that said this on the UML2 Tools newsgroup:<br>
<blockquote>
<pre wrap="">Hi all,

preparing our own environment for the next Eclipse release (3.6) in
june, we also want to update all of the frameworks we have in use (GMF,
EMF, UML2, Xpand, Xtext, MWE...). Our Eclipse based product contains
also the UML2Tools. The last available version 0.9.1 from the interim
update site declares dependencies to EMF 2.5 (excluding 2.6). That's a
problem, because we have a lot of EMF based things running and we have
to work against EMF 2.6 next future.
I have seen in the CVS bundles/features with adapted version range to
EMF 2.6, OCL 3.0 etc. But there seems to be no update site containing
these artefacts?! It is possible to run a build and make the trunk
available via update site?

Thanks
Ralf</pre>
</blockquote>
So I suspect you're installing a lot of back level versions of things
that end up wreaking havoc on the plugins that require the current
versions.  Of course you don't mention where you're installing it from
or into. <br>
<br>
<br>
Lucas Lacroix wrote:
<blockquote cite="mid:hordlv$v1p$1@build.eclipse.org" type="cite">I am
utterly confused by this issue. If I use the built-in software
installation (Help -&gt; Install New Software) to install STANDARD
Eclipse plugins, ie. those from the Eclipse updates site, it completely
messes up Eclipse. For instance, are installing UML2 Tools and it's
requisites, any previously installed plugins stop working and all new
plugins do not work. There is no indication in the error log that
anything is wrong EXCEPT that Eclipse was unable to instantiate the
Subclipse plugin (which is a plugin that was installed prior to
installing UML2 Tools).
<br>
<br>
I then started with a clean install, figuring something in my
configuration had been corrupted: I deleted the Eclipse install
directory and the .eclipse folder in my user profile. Unzipped Eclipse,
ran it, installed JUST the UML2 Tools. Everything is installed and
listed under installed features and plugins, but none of the menus, UI
elements, wizards, etc. show in Eclipse.
<br>
<br>
I have Java 1.6.0.18 installed on Windows 7 Ultimate 64-bit. I do have
both 64-bit and 32-bit versions, but Eclipse is using the 32-bit
version of Java.
<br>
<br>
I can manually install plugins, or install Subclipse via Install New
Software, but anything from Eclipse just breaks. Is it possible that
Eclipse is trying to pull 64-bit versions of the plugins (if such a
thing even exists)?
<br>
</blockquote>
</body>
</html>

--------------050404070409080107060108--
Re: Plugin Problems [message #524147 is a reply to message #524061] Tue, 30 March 2010 22:54 Go to previous messageGo to next message
Lucas Lacroix is currently offline Lucas LacroixFriend
Messages: 6
Registered: March 2010
Junior Member
Thanks for the response Ed. I did say where I was installing from and to: using Eclipse's builtin software updater: Help -> Install New Software and downloading from the Eclipse update site.

I am going to look to see if I can increase the verbosity of logging, but I haven't found anything on the net about that.

PHP Tools appears to have installed correctly. So it would appear that something within the dependency tree of the Modelling framework is causing Eclipse to stop loading plugins.
Re: Plugin Problems [message #524459 is a reply to message #523944] Thu, 01 April 2010 03:38 Go to previous messageGo to next message
Lucas Lacroix is currently offline Lucas LacroixFriend
Messages: 6
Registered: March 2010
Junior Member
Ok... So... PHP tools installed fine. Decided to try out OCL, no such luck. Even though there were no dependencies, it broke EVERY plugin. Here is the LOG for the startup after OCL was installed using Eclipse's builtin installer. Notice there is no mention of OCL, but all other plugins have errors?
~~~~~ BEGIN LOG ~~~~~
!SESSION 2010-03-31 23:32:59.767 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_18
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Framework arguments: -product org.eclipse.epp.package.java.product
Command-line arguments: -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.java.product

!ENTRY org.eclipse.ui 4 0 2010-03-31 23:33:10.848
!MESSAGE Problems occurred restoring workbench.
!SUBENTRY 1 org.eclipse.ui 0 0 2010-03-31 23:33:10.849
!MESSAGE
!SUBENTRY 1 org.eclipse.core.runtime 0 0 2010-03-31 23:33:10.849
!MESSAGE OK
!SUBENTRY 1 org.eclipse.core.runtime 0 0 2010-03-31 23:33:10.849
!MESSAGE OK
!SUBENTRY 1 org.eclipse.core.runtime 0 0 2010-03-31 23:33:10.849
!MESSAGE OK
!SUBENTRY 1 org.eclipse.ui 4 0 2010-03-31 23:33:10.849
!MESSAGE Unable to restore perspective: Workspace - <Java>.
!SUBENTRY 2 org.eclipse.ui 0 0 2010-03-31 23:33:10.849
!MESSAGE Problems occurred restoring perspective.
!SUBENTRY 3 org.eclipse.ui 0 0 2010-03-31 23:33:10.849
!MESSAGE
!SUBENTRY 2 org.eclipse.ui 0 0 2010-03-31 23:33:10.849
!MESSAGE
!SUBENTRY 2 org.eclipse.ui 0 0 2010-03-31 23:33:10.849
!MESSAGE
!SUBENTRY 2 org.eclipse.ui 0 0 2010-03-31 23:33:10.849
!MESSAGE
!SUBENTRY 2 org.eclipse.ui 0 0 2010-03-31 23:33:10.849
!MESSAGE
!SUBENTRY 2 org.eclipse.ui 0 0 2010-03-31 23:33:10.849
!MESSAGE
!SUBENTRY 2 org.eclipse.ui 0 0 2010-03-31 23:33:10.849
!MESSAGE
!SUBENTRY 2 org.eclipse.ui 4 4 2010-03-31 23:33:10.849
!MESSAGE Could not create view: org.eclipse.php.ui.explorer
!STACK 1
org.eclipse.ui.PartInitException: Could not create view: org.eclipse.php.ui.explorer
at org.eclipse.ui.internal.ViewFactory.createView(ViewFactory.j ava:158)
at org.eclipse.ui.internal.Perspective.createReferences(Perspec tive.java:1247)
at org.eclipse.ui.internal.Perspective.restoreState(Perspective .java:1217)
at org.eclipse.ui.internal.WorkbenchPage$17.runWithException(Wo rkbenchPage.java:3205)
at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run (StartupThreading.java:31)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:134)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3885)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3506)
at org.eclipse.ui.application.WorkbenchAdvisor.openWindows(Work benchAdvisor.java:803)
at org.eclipse.ui.internal.Workbench$28.runWithException(Workbe nch.java:1384)
at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run (StartupThreading.java:31)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:134)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3885)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3506)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2316)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 21)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
at org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:493)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:113)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:194)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:368)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 559)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
!SUBENTRY 3 org.eclipse.ui 4 0 2010-03-31 23:33:10.850
!MESSAGE Could not create view: org.eclipse.php.ui.explorer
!SUBENTRY 2 org.eclipse.ui 4 4 2010-03-31 23:33:10.850
!MESSAGE Could not create view: org.eclipse.dltk.ui.TypeHierarchy
!STACK 1
org.eclipse.ui.PartInitException: Could not create view: org.eclipse.dltk.ui.TypeHierarchy
at org.eclipse.ui.internal.ViewFactory.createView(ViewFactory.j ava:158)
at org.eclipse.ui.internal.Perspective.createReferences(Perspec tive.java:1247)
at org.eclipse.ui.internal.Perspective.restoreState(Perspective .java:1217)
at org.eclipse.ui.internal.WorkbenchPage$17.runWithException(Wo rkbenchPage.java:3205)
at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run (StartupThreading.java:31)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:134)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3885)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3506)
at org.eclipse.ui.application.WorkbenchAdvisor.openWindows(Work benchAdvisor.java:803)
at org.eclipse.ui.internal.Workbench$28.runWithException(Workbe nch.java:1384)
at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run (StartupThreading.java:31)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:134)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3885)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3506)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2316)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 21)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
at org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:493)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:113)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:194)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:368)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 559)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
!SUBENTRY 3 org.eclipse.ui 4 0 2010-03-31 23:33:10.850
!MESSAGE Could not create view: org.eclipse.dltk.ui.TypeHierarchy
!SUBENTRY 2 org.eclipse.ui 0 0 2010-03-31 23:33:10.850
!MESSAGE
!SUBENTRY 2 org.eclipse.ui 0 0 2010-03-31 23:33:10.850
!MESSAGE
!SUBENTRY 2 org.eclipse.ui 0 0 2010-03-31 23:33:10.850
!MESSAGE
!SUBENTRY 2 org.eclipse.ui 0 0 2010-03-31 23:33:10.850
!MESSAGE
!SUBENTRY 1 org.eclipse.core.runtime 0 0 2010-03-31 23:33:10.850
!MESSAGE OK

!ENTRY org.eclipse.team.core 4 0 2010-03-31 23:33:11.548
!MESSAGE Could not instantiate provider org.tigris.subversion.subclipse.core.svnnature for project XYZ
!STACK 1
org.eclipse.team.core.TeamException: Could not instantiate provider org.tigris.subversion.subclipse.core.svnnature for project XYZ.
at org.eclipse.team.core.RepositoryProvider.mapNewProvider(Repo sitoryProvider.java:165)
at org.eclipse.team.core.RepositoryProvider.mapExistingProvider (RepositoryProvider.java:235)
at org.eclipse.team.core.RepositoryProvider.getProvider(Reposit oryProvider.java:507)
at org.eclipse.team.internal.ccvs.ui.CVSLightweightDecorator.is MappedToCVS(CVSLightweightDecorator.java:192)
at org.eclipse.team.internal.ccvs.ui.CVSLightweightDecorator.de corate(CVSLightweightDecorator.java:147)
at org.eclipse.ui.internal.decorators.LightweightDecoratorDefin ition.decorate(LightweightDecoratorDefinition.java:263)
at org.eclipse.ui.internal.decorators.LightweightDecoratorManag er$LightweightRunnable.run(LightweightDecoratorManager.java: 81)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.ui.internal.decorators.LightweightDecoratorManag er.decorate(LightweightDecoratorManager.java:365)
at org.eclipse.ui.internal.decorators.LightweightDecoratorManag er.getDecorations(LightweightDecoratorManager.java:347)
at org.eclipse.ui.internal.decorators.DecorationScheduler$1.ens ureResultCached(DecorationScheduler.java:371)
at org.eclipse.ui.internal.decorators.DecorationScheduler$1.run (DecorationScheduler.java:331)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
!SUBENTRY 1 org.eclipse.team.core 4 0 2010-03-31 23:33:11.548
!MESSAGE Could not instantiate provider org.tigris.subversion.subclipse.core.svnnature for project XYZ
~~~~~ END LOG ~~~~~
Re: Plugin Problems [message #529416 is a reply to message #523944] Sat, 24 April 2010 22:27 Go to previous messageGo to next message
Lucas Lacroix is currently offline Lucas LacroixFriend
Messages: 6
Registered: March 2010
Junior Member
So. I finally figured this out. Eclipse cannot be installed in the Program Files directory on Windows Vista or higher. This causes all sorts of issues.
I moved the Eclipse install to the root directory, and now everything works correctly.
Re: Plugin Problems [message #529473 is a reply to message #529416] Mon, 26 April 2010 01:19 Go to previous messageGo to next message
Ralf Ebert is currently offline Ralf EbertFriend
Messages: 168
Registered: July 2009
Senior Member
Hi Lucas,

> So. I finally figured this out. Eclipse cannot be installed in the
> Program Files directory on Windows Vista or higher. This causes all
> sorts of issues.

this sounds strange. The only thing that comes to my mind is that you need write access to
the Eclipse folder, which might be restricted by default or configuration. There might be
absurd bugs related to the space char in the path, but I'd not expect such a bug in core
Eclipse plug-ins. The exceptions you mentioned don't suggest anything related to "Program
Files". Is this reproducable for you / could you try to copy your working installation to
"Program Files" and run it again to see if this was just coincidence?

Greetings,

Ralf


--
Learn how to contribute to Eclipse here: http://eclipse.org/contribute/
Read my Blog here: http://www.ralfebert.de/blog/
Follow me on Twitter here: http://twitter.com/ralfebert/
Re: Plugin Problems [message #529479 is a reply to message #529473] Mon, 26 April 2010 03:21 Go to previous messageGo to next message
Lucas Lacroix is currently offline Lucas LacroixFriend
Messages: 6
Registered: March 2010
Junior Member
Hi Ralf,
I tried everything imaginable with this. Eclipse cannot run in Windows 7 (I did say Vista before as the security schemes should be almost identical) from the Program Files directory. I am guessing as to the cause, but Windows 7 prohibits the creation of "global objects" by user processes. With most applications, an "Allow Access" dialog is displayed. However, I think Eclipse is being treated differently as it runs in the JVM.

That being said. I have tried several installations of Eclipse, both in 32-bit and 64-bit. None of them function correctly from Program Files or Program Files x86. If I install any number of plugins, ALL plugins fail to load. I was able to install Subclipse, but not UML2 Tools(or it's components). RockstarApps' JSLint plugin also caused an issue. I see no connection...

In my searching for a solution, I remember a mention of Windows redirecting the application to a different path under the user's profile when it attempts to create files. Plugins installations and configuration edits were being made in "C:\Users\[UserName]\.eclipse\[Installation Version]\plugins", but I believe Eclipse looks in it's execution directory for all the necessities. So, some files were probably able to be updated, but others weren't.

I'm not really sure what the issue was: there was actually no indication by Eclipse of an issue, except that none of the plugins had loaded or were available. As per my previous post, the only error message indicates that the Subclipse plugin could not be loaded for one of my projects.

Running Eclipse from the root directory(C:\Eclipse) solved the issue, and I have been able to install all plugins without issue.

If anyone reading this happens to have Eclipse installed in the Program Files directory on a Windows Vista or Windows 7 installation, please update. What did you do differently than me? Note: I haven't changed any of Windows permissions, as I rather like the default scheme in 7.
Re: Plugin Problems [message #529488 is a reply to message #529479] Mon, 26 April 2010 06:38 Go to previous messageGo to next message
Daniel Krügler is currently offline Daniel KrüglerFriend
Messages: 853
Registered: July 2009
Senior Member
On 26.04.2010 05:21, Lucas Lacroix wrote:
> Hi Ralf,
> I tried everything imaginable with this. Eclipse cannot run in Windows 7
> (I did say Vista before as the security schemes should be almost
> identical) from the Program Files directory. I am guessing as to the
> cause, but Windows 7 prohibits the creation of "global objects" by user
> processes. With most applications, an "Allow Access" dialog is
> displayed. However, I think Eclipse is being treated differently as it
> runs in the JVM.
>
> That being said. I have tried several installations of Eclipse, both in
> 32-bit and 64-bit. None of them function correctly from Program Files or
> Program Files x86. If I install any number of plugins, ALL plugins fail
> to load. I was able to install Subclipse, but not UML2 Tools(or it's
> components). RockstarApps' JSLint plugin also caused an issue. I see no
> connection...
>
> In my searching for a solution, I remember a mention of Windows
> redirecting the application to a different path under the user's profile
> when it attempts to create files. Plugins installations and
> configuration edits were being made in
> "C:\Users\[UserName]\.eclipse\[Installation Version]\plugins", but I
> believe Eclipse looks in it's execution directory for all the
> necessities. So, some files were probably able to be updated, but others
> weren't.
>
> I'm not really sure what the issue was: there was actually no indication
> by Eclipse of an issue, except that none of the plugins had loaded or
> were available. As per my previous post, the only error message
> indicates that the Subclipse plugin could not be loaded for one of my
> projects.
>
> Running Eclipse from the root directory(C:\Eclipse) solved the issue,
> and I have been able to install all plugins without issue.
>
> If anyone reading this happens to have Eclipse installed in the Program
> Files directory on a Windows Vista or Windows 7 installation, please
> update. What did you do differently than me? Note: I haven't changed any
> of Windows permissions, as I rather like the default scheme in 7.

I can confirm that there are some issues involved with RCP programs
from Windows Vista on. The problem typically manifests, when you
try to update your program (and by updating I'm not speaking of
the Eclipse update mechanism). The reason is as follows: The standard
RCP application has the so-called configuration area (location) set
to the configuration directory which is a sub-directory of such an
RCP app. Among other data, the configuration area contains a binary
cache of all installed plugins which allows for an efficient access
to the plugin data without re-parsing the XML files each time.

From Vista on, the OS ensures that the "Program Files" directory
is read-only (this is essentially what you are already describing
above). Via a hidden mechanism, any write attempt to this directory
is honored by automagically redirecting these changes to a
(writable) subdirectory of the User directory of the OS user who
attempts to start the RCP app. This "works" until you try the first
update of plugins:
Doing so will have the effect that the next RCP start will still
read from the proxy directory (which has not been cleaned),
so it has the effect as if the RCP app still sees the old
plugins. The cure to this problem is to actively change the
configuration area of the RCP app during the first installation,
which can be done by setting an explicit runtime option
osgi.configuration.area or configuration (see Eclipse runtime
options) in the config.ini where the specified is writable for
all users (AFAIK you can use user-specific variables like @user.dir
or @user.home as part of this path). Unfortunately it seems that
this must be done by your install program, because there is no way
to specify the configuration location per runtime (as it is
possible for the instance location (-data) - I have asked
this several times over the years and got no positive answer).

HTH & Greetings from Bremen,

Daniel Krügler
Re: Plugin Problems [message #529545 is a reply to message #529488] Mon, 26 April 2010 10:16 Go to previous messageGo to next message
Ralf Ebert is currently offline Ralf EbertFriend
Messages: 168
Registered: July 2009
Senior Member
Hi Daniel,

thanks for clarifying; I only guessed regarding the permission issue as I'm using Mac OS
X. Sounds frightening; is this documented somewhere / do you know a bug about it? I
checked the Eclipse FAQs and couldn't find any hints about such problems.

Greetings,

Ralf


--
Learn how to contribute to Eclipse here: http://eclipse.org/contribute/
Read my Blog here: http://www.ralfebert.de/blog/
Follow me on Twitter here: http://twitter.com/ralfebert/
Re: Plugin Problems [message #529607 is a reply to message #529545] Mon, 26 April 2010 14:06 Go to previous message
Daniel Krügler is currently offline Daniel KrüglerFriend
Messages: 853
Registered: July 2009
Senior Member
On 26.04.2010 12:16, Ralf Ebert wrote:
> thanks for clarifying; I only guessed regarding the permission issue as
> I'm using Mac OS X. Sounds frightening; is this documented somewhere /
> do you know a bug about it? I checked the Eclipse FAQs and couldn't find
> any hints about such problems.

I'm not aware of a bug entry. The documentation so far relevant for this:

http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/reference/misc/multi_user_installs.html
http://help.eclipse.org/galileo/topic/org.eclipse.platform.d oc.isv/reference/misc/runtime-options.html?resultof=%22confi guration%22%20%22configur%22%20%22location%22%20%22locat%22

Greetings from Bremen,

Daniel
Previous Topic:Error when starting Eclipse
Next Topic:TextViewer
Goto Forum:
  


Current Time: Sat Dec 20 23:58:18 GMT 2014

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

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