How to install a self-written plug-in to a custom Eclipse? - eclipse-plugin

I have created an Eclipse plug-in and I can copy the .jar file to the dropins folder of my main Eclipse installation.
That works well; the plug-in runs perfectly.
Unfortunately, the plug-in is intended for another (customized) Eclipse installation which does not have a dropins folder. SysInternal "Process Monitor" shows that that Eclipse simply ignores the dropins folder if I create it.
Creating a sub-directory in features and placing my .jar file in plugins also does not work:
I can see that the Eclipse reads my features.xml but it does not make an attempt to read the .jar file in the plugins directory.
I tried to create a "Feature Project" containing the plug-in and an "Update Site Project" containing the "Feature Project":
When I try to install the plug-in from the "Update Site Project", Eclipse reports: There are no categorized items instead of showing me the plug-in.
"Process Monitor" shows that Eclipse does not even attempt to access the site.xml file.
I created the features and plugins sub-directories in my "Update Site Project" and copied the corresponding files there. Then I can select the feature to be installed; I am asked if I want to install the un-signed plug-in but then I get the message: Cannot complete the install because one or more required items could not be found.
I used some tool to create the files artifacts.xml and content.xml. Now I get the message There are no categorized items again.
I have no more ideas how to continue.
How can I install my self-written plug-in to that Eclipse installation?

Related

Plugin Compatibility Issue Eclipse Oxygen (4.7) and Java 9

We upgraded one of our Eclipse 3.x plugins to work with Java 9.
But when we generated the plugin update site content, and used Eclipse Update functionality to install the new version of the plugin, we encountered the following error in Eclipse Oxygen.
Removing part descriptor with the 'pluginxxx.bla.bla' id and the 'bla bla' description. Points to the invalid 'bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView' class.
This error also appears due to some of the bundled plugins of Eclipse Oxygen itself.
After a hard week we had to
Uninstall our plugin
Remove the older versions of the plugin from the Eclipse/plugins folder
Export the plugin as a deployable plugin under the eclipse plugins directory. (Eclipse/plugins/blabla.jar)
Restart Eclipse and it worked.
Right click the eclipse plugin project and Run as "Eclipse Application" works fine, but installing the plugin from an "Update Site" causes the plugin to fail loading.
We could not find a solution yet, but it certainly effects our delivery of the plugin. The plugin is used by almost 500 CS students on their personal computers, and 200 lab computers. So the update should be installed using regular Eclipse Update functionality, not by copying the jar into the plugins directory.
Was there a better way to fix this, or something quicker we could've tried (in case this happens again)?
Update (7 days into the problem)
We have a workaround:
Export the feature project with the following settings in the Export Wizard
Destination/ Directory: Folder of your Plugin Update Site project
Options/ Package as individual JAR archieves (selected)
Options/ Generate p2 repository (selected)
Options/ Allow for binary cycles in target platform (selected)
Options/ Use class files compiled in the workspace (essentially selected)
Install (or update) the plugin from the local (or remote) plugin update site, and the CompatibilityView problem is solved.
In order to have the category listing displayed correctly during install/update new software operations, we added a category.xml file (File/New/Other/Plugin-in Development/Category Definition) in the update site project, defined the categories, and added the feature (versioned as "qualifier").
This is certainly not the way it should be, and we just hope it will be solved in the future Eclipse releases.
By the way current Eclipse Photon integration version has the same problem unfortunately.

How do I install a plugin from a local .zip or .jar file in Aptana Studio 3?

I have a locally packaged plugin that isn't available from any update server (I built and exported it from source code, using Eclipse.) The plugin installs and works in the Eclipse environment.
Now I'd like to use it in my standalone Aptana Studio 3 installation. Is there a documented method of installing a .ZIP or .JAR file containing a working Eclipse plugin into Aptana Studio 3?
If this is well-documented elsewhere, a URL is all I need! :D
Edit: I realize there may be many reasons why the plugin doesn't work in Aptana; the issue here is that I can't find a simple way to install the plugin from within Aptana. I've tried "Add Repository -> Local" and "Add Repository -> Archive" but neither method recognizes the packaged plugin. I've also tried dropping the jar file into the Aptana 3 'plugins' dir and restarting -- no love. But there are no error messages or log entries to help understand why I can't install the plugin.
Might be a dependency issue. In some cases, a plugin may depend on another plugin that is missing from the product (e.g. Aptana Studio, in this case).
What I suggest is to install Aptana Studio as a plugin into a classic Eclipse 3.7 installation. Then, install your plugin just like you tried before.
Hope that helps.

Eclipse plugin view does not show up after install

I created a sample plugin which includes a simple view in eclipse and ran the plugin from inside the workbench, my plugin is installed and I get my view showing up in Window/Show View/Other... . I packaged the plugin as a jar file and installed it under the plugins directory of eclipse and restarted my eclipse workbench. I am not able to find my plugin view. I dont know whats is wrong
I am using eclipse RCP SR2 (3.6) for developing plugins and my packaged jar file includes the code, META-INF/MANIFEST.MF and plugin.xml files.
I created the plugin from the book 'Eclipse Plug-ins, 3rd Edition'. I followed the steps outright and am not able to set up the plugin as a jar file.
I got it to work somehow? The plug-in project was created using Execution Environment JavaSE-1.6. 'It was given in the book I referred'. Now the manifest editor had the entry 'Bundle-RequiredExecutionEnvironment: JavaSE-1.6'. Now I ran the application with-in eclipse, it was working. But when I bundled the plugin as jar and copied the plug-in jar under plugins folder and restarted eclipse the plugin was not working, I dont know why, I thought my eclipse is not running under JRE1.6, but I checked my Windows->Preferences->Java->Installed JREs-> I have only jdk1.6.0_27 checked (So I assume that the eclipse is running under JavaSE1.6). This is bit confusing for me! I removed the Execution Environment entry in the Manifest editor Overview tab. Now there is no 'Bundle-RequiredExecutionEnvironment' entry in my Manifest, I created the bundle jar again and installed in eclipse plugins folder and restarted eclipse using -clean option. It started working in my eclipse. I got it to work somehow but with no understanding! I am still looking for answers from some one who can help me figure out what went wrong?
Open an OSGI console and type 'ss'. It should list all of the plugins. Can you see it? What is the state of it.
You can use Preferences/plug-in development/target platform edit running 'running platform' content tab to list and check/uncheck plugins. I hope it helps.
You could try copying your jar file to the eclipse/dropins folder.

installing plugin in eclipse-cpp-helios-SR2-linux-gtk-x86_64

Can someone tell me how to install a map reduce (hadoop) plugin in eclipse-cpp-helios-SR2-linux ? Thanx in advance
hi
you can try this approach. Use any latest version of eclipse and than install CDT in it. This will allow you to write c/c++ application.
for your hadoop just go to you hadoop installation directory,here in contrib folder you will find eclipse plug-in in this folder you will get the jar file, just copy this file in to eclipse plug-in directory and restart the eclipse.
Now check for map-reduce perspective in window->open perspective and select build configuration according to your system
I don't know about the hadoop plug-in site if you find a site which provide hadoop plug-in than
There are two way to do it.
1:As you read over the net copy the plug-in and paste it into Eclipse plug-in folder and restart the eclipse. This is not the best way to install plug-in.
2: The proper way to install plug-in in eclipse is following :
Go to Help menu in Eclipse main window press Install new software.
Here in tab work with just put the address of website from where you want to install the plug-in.
Write any name for plug-in than look in the text box. it will provide you proper name of the plug-in and "next " tab at the bottom will be activated.
Press the next tab,It will install your plug-in .
At the end of installation just restart the eclipse to take the new setting effect.

exporting installed plugins from eclipse to another

How to export installed plugins from eclipse?
I want to use some of my installed plugins in another eclipse machine.
I don't want to download those again.
Regards
Start fresh and install plugins from an old install
The idea here is that you want to keep your old install intact, download a new indigo package (http://download.eclipse.org/) and just adds the existing plugins to your install. With Indigo this is now made super easy!
Step 1: Download and unzip your Indigo install: http://download.eclipse.org
Step 2: Import your plug-ins from your previous install by doing File > Import > Install > From existing install, pick your old install, select the plug-ins and there you go! You can chose to go piece meal, or chose to pick several entries, in any event dependency analysis will be performed to check the validity of the install.
Step 3: Click next a couple times and patiently wait for the bytes to download to your machine. Then restart and enjoy!
from http://lenettoyeur-on-eclipse.blogspot.com/2011/06/from-helios-to-indigo-is-easy.html
You can export the list of the features and plugins by going to File->Export->Install.
I’m bringing a really old thread to life here, but there’s a much more comfortable way to export your Eclipse plug-ins and use your setup on another machine now.
On http://profiles.yatta.de you can download the Yatta Launcher for Eclipse, which allows you to export your Eclipse & workspace setup (including your plug-in setup).
Export and installation are pretty straight forward:
Download the Launcher from http://profiles.yatta.de and start it
The tool will automatically discover your Eclipse installations. Find the one you want to export in the list (they are all named after your workspaces).
Click the Upload & Share button (the blue one) on the right of the entry you want to export.
(You won’t actually “share” your Eclipse or workspace with anyone. You’ll just upload a setup file with your metadata that only you have access to yourself. You could share this later, but you can also just keep it as a backup).
This solution does not only allow you to reuse your eclipse plug-in setup, but also your configured Git & task repositories and many other setup-specific settings.
Along with update sites, p2 can treat existing Eclipse installations as a source for the plugins to be installed.
If you access the Eclipse folder in another machine (which has the plugins installed) via shared folder in the network , then in your new Eclipse, open Preferences->Install/Update->Available Software Sites->Add->Local-> browse to the Eclipse->p2->org.eclipse.equinox.p2.engine->profileRegistry and select the profile.
Now in the target Eclipse you can install those plugins as if you are installing from an update site.
P2 (the bundle provisioning system) provides functionalities for shared bundle pooling, see
http://wiki.eclipse.org/Equinox/p2/Getting_Started#Bundle_pooling
It seems that feature is on its way: http://bugs.eclipse.org/282419
I don't know how to export a installed plugin,
but this answer helps for reinstalling an eclipse plugin from another eclipse installation. (How Do You Reinstall Installed Eclipse Plugins?)
Also See
Installing Eclipse (3.4+) plugins in a directory other than ECLIPSE_HOME/plugins
How To Add Perspectives In Eclipse?
You can simply copy the plug in folder from the other machine --(may be on a pendrive or cd )-- whatever suits you.
Then go to your ecplise,
File > Import... > Plug-in Development --> Plug-ins and Fragments Click "Next"
[Import From] -- Directory. Browse your plugins folder
Just Hit "Next"
From the left box, select individual or you may want to add all of it. Just hit
"AddAll ->"
And Just Hit "Next"
and there on just sit back let it do all the import work.
Dropping the right jars from your plugins directory to the target installation plugins directory should do the trick.