It's all about the answers!

Ask a question

silent/scripted install eclipse patch/plugin help

sam detweiler (12.5k6194201) | asked Dec 07 '12, 11:23 a.m.
can anyone point me to process/best practice on how to install a patch or new plugin into an eclipse client via some silent/scripted install process.

the client(s) were installed/setup in lots of different ways (unfortunately) and not all (many!) are recorded in any reqistry or ...

I can find the location of the file we need to change (and the extra plugins it needs) on the filesystem
and can use that for input to the script..


4 answers

permanent link
Chris Graham (367714) | answered Aug 20 '15, 10:06 p.m.
Possibly the longest reply (in terms of time) yet, but this is what I've come up with. In my case, I have the eclipse RTC 4.0.3 client, which is Eclipse 3.6 (Helios) based and I thought that others may benefit.

I've used the p2 director to perform the provisioning operations.

I've added the Eclipse Market Place plugins (that IBM usual strips out of it's installs!), then I add MercurialEclipse, then EGit, then Subclipse, then the M2E plugin and then follow up with the internally discovered Maven SCM Handler for Subclipse. The Maven SCM Handler for EGit requires a minimum of EGit 3, which does not work on Eclipse 3.6.

I hope this is of benefit to others. Hopefully this would have worked for you.

So we have:
# Author: Chris Graham -
# Installs: Additional plugins/features into IBM Rational RTC Eclipse (3.6) Client Linux : 4.0.3

cd /opt/IBM/TeamConcert

# If you run into trouble, try:
#./eclipse -application org.eclipse.equinox.p2.director -nosplash -list -repository
#./eclipse -application org.eclipse.equinox.p2.director -nosplash -list -repository
#./eclipse -application org.eclipse.equinox.p2.director -nosplash -list -repository
#./eclipse -application org.eclipse.equinox.p2.director -nosplash -list -repository
#./eclipse -application org.eclipse.equinox.p2.director -nosplash -list -repository

# Install: Eclipse Market Place (for Helios/3.6)
./eclipse -application org.eclipse.equinox.p2.director -nosplash -repository,, -installIU

# Install: Mercurial Eclipse
./eclipse -application org.eclipse.equinox.p2.director -nosplash -repository -installIU

# Install: EGit 2.1
./eclipse -application org.eclipse.equinox.p2.director -nosplash -repository -installIU

# Install: Subclipse (Note: RTC already installs a version of tmate's svnkit, so not needed here).
# Specify specific versions
#./eclipse -application org.eclipse.equinox.p2.director -nosplash -repository -installIUs,,,,,,

# Or accept the latest (by default)
./eclipse -application org.eclipse.equinox.p2.director -nosplash -repository -installIUs,,,,,,

# Install: M2E 1.4.1
./eclipse -application org.eclipse.equinox.p2.director -nosplash -repository,, -installIUs,,,,org.eclipse.m2e.scm/

# Install: Maven SCM Handler for Subclipse
./eclipse -application org.eclipse.equinox.p2.director -nosplash -repository -installIU

# Note: The Maven SCM Handler for EGit can not be installed, as it requires EGit 3.0+ and 2.1 is the latest we can install.

permanent link
sam detweiler (12.5k6194201) | answered Dec 08 '12, 8:01 a.m.
edited Dec 11 '12, 6:21 p.m.
well, the 'cheap' way is to copy the files into the plugins and features folder
and add -clean to the eclipse.ini as the first line

| Well, not so fast..  this causes Eclipse to clean start every time, not just once (the ini is not cleaned up)

Nhi P Ta commented Dec 16 '12, 6:47 p.m.

your can remove -clean options after running the options once...

sam detweiler commented Dec 16 '12, 10:03 p.m.

maybe, but I have 5000 clients to do this on all occurrences of eclipse that have a specific jar file in plugins folder.  I don't know when the user will start that eclipse
and I have no way of fixing just that one

I need a totally unattended approach..
I also can't install tools on their system (like Installation manager), as there is no way to know how they installed the eclipse setup in question..

on my system I have 5 instances, 3 with the jar file in question.. One IM install,
one unzip, and one built with the WTP unzip and the rtc p2 installed manually.
all three need to be modified

permanent link
sam detweiler (12.5k6194201) | answered Dec 11 '12, 6:21 p.m.
bump to the top

permanent link
Nhi P Ta (18841018) | answered Dec 13 '12, 5:55 p.m.
 Hi Sam,

if your RTC eclipse client was installed using IBM installation manager you can use the silent installation instruction to apply upgrade (patch).

if generic standalone eclipse your can add the plugins from the dropins directory which is on the same level as the configuration directory where you have the eclipse.exe and eclipse.ini files.

sam detweiler commented Dec 14 '12, 10:18 a.m.


 on the client I wanted to try this, there was not a dropins directory. I created one, put the jar files there, but they were not used on the next startup.

this was a standalone eclipse wtp unzip install, with the RTC P2 installed on top.

Andrew Niefer commented Dec 14 '12, 11:06 a.m.

You will probably want to create proper p2 metadata for your changes and install them using the p2 director.  You will probably find better guidance for this by asking in the eclipse p2 forum.

Nhi P Ta commented Dec 16 '12, 7:35 p.m.

Hi Sam,

If you are using jar files, it will be dropins/plugins/ directory.

Your answer

Register or to post your answer.