Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Installed deltapack, now my ECLIPSE_HOME is incorrect!!!!
Installed deltapack, now my ECLIPSE_HOME is incorrect!!!! [message #728057] Thu, 22 September 2011 13:08 Go to next message
David Wynter is currently offline David Wynter
Messages: 4552
Registered: July 2009
Senior Member
Hi,

I installed the deltapack, somehow it changed my ECLIPSE_HOME variable
to point to the eclipse directory under the deltapack directory. Since
ECLIPSE_HOME is not edittable I am forced to reinstall Eclips and a
million plugins that I use. Another 4 hours lost... I seriously what
ever causes the dependency hell (who said DLL hell went away) and weird
config changes, is that p2?

David
Re: Installed deltapack, now my ECLIPSE_HOME is incorrect!!!! [message #728088 is a reply to message #728057] Thu, 22 September 2011 13:51 Go to previous messageGo to next message
David Wynter is currently offline David Wynter
Messages: 4552
Registered: July 2009
Senior Member
Hi,

Still don't know how it got changes but using grep found this
org.eclipse.jdt.core.classpathVariable.ECLIPSE_HOME=/home/david/opt2/eclipse/deltapack/eclipse

in
/home/david/workspace/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jdt.core.prefs

I corrected this and saved. On restart still have the problem, so
clearly it is getting this setting from somewhere else?

Removed deltapack from my Target Runtime to see if that also corrected
the ECLIPSE_HOME, didn't help.

David

On 22/09/11 14:08, David Wynter wrote:
> Hi,
>
> I installed the deltapack, somehow it changed my ECLIPSE_HOME variable
> to point to the eclipse directory under the deltapack directory. Since
> ECLIPSE_HOME is not edittable I am forced to reinstall Eclips and a
> million plugins that I use. Another 4 hours lost... I seriously what
> ever causes the dependency hell (who said DLL hell went away) and weird
> config changes, is that p2?
>
> David
Re: Installed deltapack, now my ECLIPSE_HOME is incorrect!!!! [message #728089 is a reply to message #728088] Thu, 22 September 2011 13:57 Go to previous messageGo to next message
David Wynter is currently offline David Wynter
Messages: 4552
Registered: July 2009
Senior Member
Found it!

/home/david/workspace/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.pde.core.prefs:platform_path=/home/david/opt2/eclipse/deltapack/eclipse
/home/david/workspace/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.pde.core.prefs:saved_platform0=/home/david/opt2/eclipse/deltapack/eclipse

Changed these to be correct and it works again. Still no idea how they
ended up like that when deltapack was added. Hope this helps someone else.

David
On 22/09/11 14:51, David Wynter wrote:
> Hi,
>
> Still don't know how it got changes but using grep found this
> org.eclipse.jdt.core.classpathVariable.ECLIPSE_HOME=/home/david/opt2/eclipse/deltapack/eclipse
>
>
> in
> /home/david/workspace/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jdt.core.prefs
>
>
> I corrected this and saved. On restart still have the problem, so
> clearly it is getting this setting from somewhere else?
>
> Removed deltapack from my Target Runtime to see if that also corrected
> the ECLIPSE_HOME, didn't help.
>
> David
>
> On 22/09/11 14:08, David Wynter wrote:
>> Hi,
>>
>> I installed the deltapack, somehow it changed my ECLIPSE_HOME variable
>> to point to the eclipse directory under the deltapack directory. Since
>> ECLIPSE_HOME is not edittable I am forced to reinstall Eclips and a
>> million plugins that I use. Another 4 hours lost... I seriously what
>> ever causes the dependency hell (who said DLL hell went away) and weird
>> config changes, is that p2?
>>
>> David
>
Re: Installed deltapack, now my ECLIPSE_HOME is incorrect!!!! [message #728181 is a reply to message #728089] Thu, 22 September 2011 17:13 Go to previous messageGo to next message
David Wegener is currently offline David Wegener
Messages: 1341
Registered: July 2009
Senior Member
I'm not completely sure, but I believe that this setting is controlled from the Target Platform defined in Window->Preferences->Plugin Development->Target Platform page.
Re: Installed deltapack, now my ECLIPSE_HOME is incorrect!!!! [message #728191 is a reply to message #728181] Thu, 22 September 2011 17:31 Go to previous messageGo to next message
David Wynter is currently offline David Wynter
Messages: 4552
Registered: July 2009
Senior Member
On 22/09/11 18:13, dpwegener wrote:
> I'm not completely sure, but I believe that this setting is controlled
> from the Target Platform defined in Window->Preferences->Plugin
> Development->Target Platform page.
ECLIPSE_HOME is not editable from anywhere in Eclipse that location
included. I expect the developers figured we have to be protected from
ourselves.

I hate p2 with a vengence, spent the whole day wrestling with it. I have
the same projects as a collegue, he has no errors and I have 2513 due to
Access restriction errors. They are all exposed correctly in there
plugins (with explicit access rules in most cases) and re exported were
required and yet Eclipse cannot resolve them. Yesterday I had none, I
installed deltapack and checked out my collegues updates and that is it
and the world went to hell in a hand basket. We have identical
MANIFEST.MF in our 20 projects, our dependency graph of plugins is max 4
deep.

I expect to waste 2 days a year due to p2.

rant over.

David
Re: Installed deltapack, now my ECLIPSE_HOME is incorrect!!!! [message #728211 is a reply to message #728057] Thu, 22 September 2011 18:12 Go to previous messageGo to next message
Curtis Windatt is currently offline Curtis Windatt
Messages: 166
Registered: July 2009
Senior Member
The ECLIPSE_HOME classpath variable is set by PDE when the target platform changes. Starting in 3.5 your target platform no longer has to have a single 'home' location and instead may consist of multiple locations of varying types (directory, p2 repo, etc). PDE makes its best guess at what location to call 'home'.

You should look at your current target platform on the preference page and see whether the location(s) in it match with what you expect.

There was a bug where the classpath variable was not updated correctly on target change. This might also be affecting you. (https://bugs.eclipse.org/bugs/show_bug.cgi?id=354895)
Re: Installed deltapack, now my ECLIPSE_HOME is incorrect!!!! [message #728450 is a reply to message #728211] Fri, 23 September 2011 09:26 Go to previous messageGo to next message
David Wynter is currently offline David Wynter
Messages: 4552
Registered: July 2009
Senior Member
As I said, I added deltapack, which requires you to add it to the
required platform. Something internal to Eclipse then decided to use
that new addition for ECLIPSE_HOME instead of the original one. Thereby
breaking every use of ECLIPSE_HOME in my projects. Now that I know where
thi sis store din theh .metadata structure I can change it.

What I really object to is that the consequence seems to be that the
normal resolution of classes through dependent plugin hierarchies seems
to have broken. In the end I had to make these errors a Warning instead
of an error, to get back doing some real work a whole day later.

David

On 22/09/11 19:12, Curtis Windatt wrote:
> The ECLIPSE_HOME classpath variable is set by PDE when the target
> platform changes. Starting in 3.5 your target platform no longer has to
> have a single 'home' location and instead may consist of multiple
> locations of varying types (directory, p2 repo, etc). PDE makes its best
> guess at what location to call 'home'.
>
> You should look at your current target platform on the preference page
> and see whether the location(s) in it match with what you expect.
>
> There was a bug where the classpath variable was not updated correctly
> on target change. This might also be affecting you.
> (https://bugs.eclipse.org/bugs/show_bug.cgi?id=354895)
Re: Installed deltapack, now my ECLIPSE_HOME is incorrect!!!! [message #728606 is a reply to message #728450] Fri, 23 September 2011 14:29 Go to previous messageGo to next message
David Wegener is currently offline David Wegener
Messages: 1341
Registered: July 2009
Senior Member
As has been pointed out, the ECLIPSE_HOME value is controlled by the currently active Target Platform definition. Perhaps you should spend some time studying Target Platforms and how to configure them. That might clear up what is happening for you.
Re: Installed deltapack, now my ECLIPSE_HOME is incorrect!!!! [message #729239 is a reply to message #728606] Sun, 25 September 2011 14:57 Go to previous messageGo to next message
David Wegener is currently offline David Wegener
Messages: 1341
Registered: July 2009
Senior Member
On 09/23/2011 09:29 AM, dpwegener wrote:
> As has been pointed out, the ECLIPSE_HOME value is controlled by the
> currently active Target Platform definition. Perhaps you should spend
> some time studying Target Platforms and how to configure them. That
> might clear up what is happening for you.

Apparently I the one that needs to spend more time studying Target
Platforms. The Target Platform doesn't define ECLIPSE_HOME. It can be
used by a Target Platform to define a target based on the current
Eclipse instance. Not much help in your case. Sorry for the bad
information.


Going back to your original post, you said that you installed the Delta
Pack. How did you install it? You should not install it into Eclipse
by unzipping it over the location where you have Eclipse installed. You
need to place it in a separate directory outside of Eclipse.
Re: Installed deltapack, now my ECLIPSE_HOME is incorrect!!!! [message #731311 is a reply to message #729239] Fri, 30 September 2011 15:12 Go to previous message
David Wynter is currently offline David Wynter
Messages: 4552
Registered: July 2009
Senior Member
We put it in a directory under eclipse called deltapack. Then could use
a {$eclipse.home}/deltapack as the additional path for the target
platform. I think my error was using an explicit path, not sure and for
some reason this ended up as eclipse home, it looked like it used the
last directory listed in the target platform, but I am guessing. It
works using the eclipse.home variable though.


On 25/09/11 15:57, David Wegener wrote:
> On 09/23/2011 09:29 AM, dpwegener wrote:
>> As has been pointed out, the ECLIPSE_HOME value is controlled by the
>> currently active Target Platform definition. Perhaps you should spend
>> some time studying Target Platforms and how to configure them. That
>> might clear up what is happening for you.
>
> Apparently I the one that needs to spend more time studying Target
> Platforms. The Target Platform doesn't define ECLIPSE_HOME. It can be
> used by a Target Platform to define a target based on the current
> Eclipse instance. Not much help in your case. Sorry for the bad
> information.
>
>
> Going back to your original post, you said that you installed the Delta
> Pack. How did you install it? You should not install it into Eclipse by
> unzipping it over the location where you have Eclipse installed. You
> need to place it in a separate directory outside of Eclipse.
Previous Topic:(no subject)
Next Topic:initial results trying to develop a basic plugin
Goto Forum:
  


Current Time: Sun Sep 21 12:21:47 GMT 2014

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

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