Changing default plugin installation directory in Eclipse 3.5.2 - eclipse

With the new Eclipse 3.5.2 Update manager, I am not able to find, how do I specify installation directory for my plugins. I use it, so that I can manage multiple installation of eclipse, without installation plugins again. Can anybody provide me settings, so that I can specify location for plugin, while installing it ?

You can use an external dropins folder, with the setting (in your eclipse.ini):
-Dorg.eclipse.equinox.p2.reconciler.dropins.directory=C:/jv/eclipse/mydropins
Now, the trick is:
If you install a new plugin through Eclipse itself, it will install it directly in its own plugins/features internal directories.
It is up to you to move those jars in a similar directory structure in your external dropins directory.
So this is not an exact solution for your problem, but at least that allows you to isolate those plugins in a shared external directory which will be read by different Eclipse installation on each Eclipse session startup.

Related

How do you install the PigPen plugin in Eclipse?

I tried to install PigPen using the directions here:
http://wiki.apache.org/pig/PigPen
But despite rebooting Eclipse, it doesn't seem to recognize that I put a new jar in the plugins folder.
There is dropins folder on the same level with plugins folder. Eclipse by default configured to pick up new plugins from it.

Install a plugin in a complex unix environment

I've created an eclipse plugin on my local host, which works ok.
Now I've to deploy the plugin (.jar) file to some complex unix based environment which has dozens of eclipse installations.
I need to have the plugin only in one of the eclipse instances.
I tried to find all plugin/features/droping directories in system and copy to each of them my plugin. But still I cannot see it in eclipse.
I tried to
Install New Software and Add a local archive but eclipse failed with "no repository found"
Questions :
How can I install the jar file plugin from GUI ?
If its not possible, how can I figure out where is the correct
location of plugin directory from inside eclipse GUI ?
Otherwise how can I see if the eclipse is trying to load the .jar
plugin at all ? (Probably some of the dependencies are failing...)
When you tried
Install New Software and Add a local archive but eclipse failed with "no repository found"
Did you provide the plug-in .jar directly or an update site ?
You should create an update site for it to work.
See http://www.vogella.com/articles/EclipsePlugIn/article.html#p2deployplugin
(The drop-in solution is not reliable.)

Portable Eclipse Juno with plugins

I am currently trying to make an Eclipse istallation with installed plugins portable, so that you only have to copy the whole "eclipse"-folder to another system and have the same setup as on the original system.
My problem now is, that since eclipse 4.2 (?) when using Help > Install new Software... plugins are installed externally into the folder
C:/Users/Username/.eclipse/org.eclipse.platform_4.2.0_identifier
and not into the folder where the "eclipse.exe" is located:
C:/Program Files (x86)/eclipse
Now my question is if it is possible to make eclipse install additional plugins into the plugins/features-folder of eclipse's home folder (C:/Program Files (x86)/eclipse).
Unfortunately, it isn't possible to use the dropins-folder, because one plugin that shall be installed only exists as an update site.
I'm using
Windows 7 Professional Service Pack 1 64bit
with
Eclipse IDE for C/C++ Developers
Version: Juno Service Release 2
32-bit (to provide portability).
Greets :)
Do not put your eclipse installation under the "Program Files" folder. Eclipse will install all plugins to its own folder by default, unless that folder is not writable from Eclipse. And the "Program Files" folder should not be writable by you (unless you are using administrative access rights). Only the trusted installer service account should modify that folder (following Windows guidelines).
Therefore unzip Eclipse somewhere else into a location where anyone is allowed to write, install your plugins and zip the whole folder again.
As an alternative to that ZIP package you may want to look at File -> Export -> Install -> Software items to file, where you can export (and re-import) a list of your already installed plugins.
What mack is trying to do should work, this is essentially what the eclipse foundation do to provide the various distros.
The plugin that is only available as an update site could be installed into and existing in-installation then copied to the new distro. Only trick is making sure you have all the feature and plugin jar files.

Uninstalling Apache Geronimo Eclipse plugin?

How do I uninstall Apache Geronimo Adapter Eclipse Plugin?
Look the prints of my Eclipse. I've tried deleting some IBM jars from plugin folder but without success.
Using Eclipse plugin form, I can't find the Geronimo Adapter plugin to remove too.
The Images:
You should find it on the Features or at least Plug-ins tab in the Installation details-Dialog.
What seemed to work for me was:
Remove all JARs named org.apache.geronimo.* from the eclipse/plugins dir.
Remove all subdirs named org.apache.geronimo.* from the same dir.
Remove all subdirs named org.apache.geronimo.* from the .metadata dir.
This comes without warranties of any kind. Close Eclipse and backup your eclipse and .metadata dirs before trying this!
If the above isn't working, you might just be able to live with Customize Perspective... -> Menu Visibility and remove the check.

How to install a custom plug-in in Eclipse Ganymede?

We have a custom plug-in. That is, the company where I'm working developed it in house.
I would like to install it as an available plug-in in Eclipse Ganymede. How do I do that?
From what I can figure out, the Eclipse software install only supports installation from Eclipse software update sites.
I went to Help -> Install New Software... -> Add -> Local...
to browse to a folder containing the plug-in. Although the dialog lets me add the directory as an update site, it doesn't work. It expects that directory to be a local Eclipse update site (I think). I get the error
No repository found at file:/G:/TOOLS/...
Next I just copied the plug-in into the plug-in directory under my Eclipse installation. That didn't work either. I also tried copying it into the dropins directory. No dice.
Can anyone enlighten me how to install a plug-in that's not on an "update" site?
Thanks in advance....
Usually an Eclipse plug-in packaged as zip file is install by extracting it into the Eclipse installation directory (or the plugins directory depending on how it is packaged, as it can also extract files in features directory).
Next restart Eclipse with the --clean option.
Did you check the Eclipse error log? Maybe the bundle is failing to deploy for some reason.
Otherwise, create a Feature and Update Site for your plugin as described here. An update site can either be a remote http server (SVN even), or a local directory. The nice thing is that you'll get versioning and the ability to upgrade and uninstall from inside Eclipse. It also makes things easier once your plugin grows into several plugins because they can be bundled together into a single, versioned feature.