Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 332898

Summary: Uninstalling a plugin from command line doesnt work
Product: [Eclipse Project] Equinox Reporter: Prashant Deva <prashant.deva>
Component: p2Assignee: P2 Inbox <equinox.p2-inbox>
Status: CLOSED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: pascal
Version: 3.6.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Prashant Deva CLA 2010-12-19 01:14:45 EST
If I just right away try to uninstall a feature, i get the following err msg -

C:\eclipses\testinstallation\32bit\eclipse> java -jar plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar -appli
cation  org.eclipse.update.core.standaloneUpdate -command uninstall -featureId com.chronon.sb -version 1.0.0.beta


Command failed. Please check log file C:\eclipses\testinstallation\32bit\eclipse\configuration\1292739111270.log for det
ails.


Contents of the log file -


!SESSION 2010-12-18 22:11:51.016 -----------------------------------------------
eclipse.buildId=M20100909-0800
java.version=1.6.0_23
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Framework arguments:  -application org.eclipse.update.core.standaloneUpdate -command uninstall -featureId com.chronon.sb -version 1.0.0.beta
Command-line arguments:  -application org.eclipse.update.core.standaloneUpdate -command uninstall -featureId com.chronon.sb -version 1.0.0.beta

!ENTRY org.eclipse.update.core 4 0 2010-12-18 22:11:52.827
!MESSAGE  [Cannot find unconfigured feature  com.chronon.sb with version 1.0.0.beta]
!STACK 0
java.lang.Exception: Cannot find unconfigured feature  com.chronon.sb with version 1.0.0.beta
	at org.eclipse.update.standalone.UninstallCommand.<init>(UninstallCommand.java:93)
	at org.eclipse.update.standalone.CmdLineArgs.getCommand(CmdLineArgs.java:140)
	at org.eclipse.update.standalone.StandaloneUpdateApplication.run(StandaloneUpdateApplication.java:43)
	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.internal.app.EclipseAppContainer.callMethodWithException(EclipseAppContainer.java:587)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:198)
	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(EclipseStarter.java:369)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.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:619)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1383)




So then I tried to disable and then uninstall the feature. It disables but doesnt uninstall -

C:\eclipses\testinstallation\32bit\eclipse> java -jar plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar -appli
cation  org.eclipse.update.core.standaloneUpdate -command disable -featureId com.chronon.sb -version 1.0.0.beta
Command completed successfully.

C:\eclipses\testinstallation\32bit\eclipse> java -jar plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar -appli
cation  org.eclipse.update.core.standaloneUpdate -command uninstall -featureId com.chronon.sb -version 1.0.0.beta
Command failed. Please check log file C:\eclipses\testinstallation\32bit\eclipse\configuration\1292739196877.log for det
ails.

Contents of the log -

!SESSION 2010-12-18 22:13:16.624 -----------------------------------------------
eclipse.buildId=M20100909-0800
java.version=1.6.0_23
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Framework arguments:  -application org.eclipse.update.core.standaloneUpdate -command uninstall -featureId com.chronon.sb -version 1.0.0.beta
Command-line arguments:  -application org.eclipse.update.core.standaloneUpdate -command uninstall -featureId com.chronon.sb -version 1.0.0.beta

!ENTRY org.eclipse.update.core 4 0 2010-12-18 22:13:19.132
!MESSAGE Feature not installed by Update Manager: Feature: "file:/C:/eclipses/testinstallation/32bit/eclipse/features/com.chronon.sb_1.0.0.beta/" Version: "com.chronon.sb_1.0.0.beta". [Chronon]
Comment 1 Pascal Rapicault CLA 2010-12-20 16:22:58 EST
This application is no longer supported. You should use director application: http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse.platform.doc.isv/guide/p2_director.html