Studio 11 uninstall fails on fresh SXCE install

I have a fresh install of build 62 (no the developer edition) and I just tried to uninstall studio 11 (to move it to a zone). I'm confronted with a pile of Java exception nonsense (why not use a shell script rather than Java?):

./batch_uninstall_all

Starting the uninstallation ...

uninstall_Documentation

Java Accessibility Bridge for GNOME loaded.

InvocationTargetException thrown in constructor in class com.sun.install.panels.ComponentPanel

java.lang.reflect.InvocationTargetException

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessor Impl.java:39)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructor AccessorImpl.java:27)

at java.lang.reflect.Constructor.newInstance(Constructor.java:513)

at com.sun.wizards.core.WizardComponent.createObject(WizardComponent.java:773)

at com.sun.wizards.core.WizardComposite.deserializeChildren(WizardComposite.java:6 04)

at com.sun.wizards.core.WizardComposite.deserializeChildren(WizardComposite.java:6 17)

at com.sun.wizards.core.WizardTreeManager.createSubTree(WizardTreeManager.java:113 2)

at com.sun.wizards.core.WizardTreeManager.createWizardPanel(WizardTreeManager.java :896)

at com.sun.wizards.core.WizardTreeManager.<init>(WizardTreeManager.java:325)

at com.sun.wizards.core.CommandLineConsole.run(CommandLineConsole.java:75)

at java.lang.Thread.run(Thread.java:619)

Caused by: java.lang.NoClassDefFoundError: com/sun/install/panels/ComponentSelectionListener

at java.lang.Class.getDeclaredMethods0(Native Method)

at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)

at java.lang.Class.getDeclaredMethod(Class.java:1935)

at java.awt.Component.isCoalesceEventsOverriden(Component.java:5723)

at java.awt.Component.access$100(Component.java:162)

at java.awt.Component$2.run(Component.java:5677)

at java.awt.Component$2.run(Component.java:5675)

at java.security.AccessController.doPrivileged(Native Method)

at java.awt.Component.checkCoalescing(Component.java:5674)

at java.awt.Component.<init>(Component.java:5643)

at java.awt.Container.<init>(Container.java:245)

at javax.swing.JComponent.<init>(JComponent.java:576)

at javax.swing.JPanel.<init>(JPanel.java:65)

at javax.swing.JPanel.<init>(JPanel.java:92)

at javax.swing.JPanel.<init>(JPanel.java:100)

at com.sun.wizards.core.WizardComponent.<init>(WizardComponent.java:159)

at com.sun.wizards.core.WizardLeaf.<init>(WizardLeaf.java:92)

at com.sun.install.panels.ComponentPanel.<init>(ComponentPanel.java:166)

... 12 more

[2862 byte] By [Zootlea] at [2007-11-27 2:40:34]
# 1
You probably installed Java 6 at some point, right? :) The uninstaller won't run with 6; you have to edit the /usr/java symlink and point it to an older version. Then you can switch it back. Thanks to http://dryfish.org.uk/~misty/blog/
DanNelsona at 2007-7-12 3:03:32 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 2
It was a fresh install of build 62, so whatever version of Java cam with that build should have been used. I doubt I'd have installed a newer Java, if I could I'd prefer to uninstall Java!Ian
Zootlea at 2007-7-12 3:03:32 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 3
I should have added this:java -versionjava version "1.6.0_01"Java(TM) SE Runtime Environment (build 1.6.0_01-b06)Java HotSpot(TM) Server VM (build 1.6.0_01-b06, mixed mode)uname -aSunOS quadfx 5.11 snv_62 i86pc i386 i86pcian
Zootlea at 2007-7-12 3:03:32 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 4
Sun Studio 11 won't work with (on) Java 1.6, so even if you manage to install it, you're going to need to use special option to start IDE and expect Java-related issues. Sun Studio 12 should work with Java 1.6, however.
MaximKartasheva at 2007-7-12 3:03:32 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 5
OK. I only use the compilers an tools with the good old Workshop IDE (I prefer xemacs), so I hadn't seen any IDE issues. Java is such a PITA.Ian
Zootlea at 2007-7-12 3:03:32 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 6
In this case, only installer/uninstaller is affected, of course. I guess you can manually do its job using pkgadd and pkgrm, but it's a pain... It would be easier to install required version of Java.
MaximKartasheva at 2007-7-12 3:03:32 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 7
Better still would be to provide a simple shell script or GTK installer!Ian
Zootlea at 2007-7-12 3:03:32 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 8
Before I learned about the "use an older java" trick, I uninstalled Sun Studio 11 this way:cd /var/sadm/pkgyes | pkgrm SPRO*then ran prodreg and removed the leftover entries.
DanNelsona at 2007-7-12 3:03:33 > top of Java-index,Development Tools,Solaris and Linux Development Tools...