Sun Studio 11

Turns out you can’t run the Sun Studio 11 installer on stock Solaris 10u3/sparc. You get:

# ./installer

Exception in thread "Thread-28" 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.(Component.java:5643)
        at java.awt.Container.(Container.java:245)
        at javax.swing.JComponent.(JComponent.java:576)
        at javax.swing.JPanel.(JPanel.java:65)
        at javax.swing.JPanel.(JPanel.java:92)
        at javax.swing.JPanel.(JPanel.java:100)
        at com.sun.wizards.core.WizardComponent.(WizardComponent.java:159)
        at com.sun.wizards.core.WizardComponent.(WizardComponent.java:145)
        at com.sun.wizards.core.WizardLeaf.(WizardLeaf.java:78)
        at com.sun.install.panels.ComponentPanel.(ComponentPanel.java:144)
        at com.sun.install.products.CreateSimpleUninstaller.createSimpleUninstallerTree(CreateSimpleUninstaller.java:42)
        at com.sun.install.products.UninstallArchiveCreator.writeArchiveFile(UninstallArchiveCreator.java:537)
        at com.sun.install.products.UninstallArchiveCreator.writeArchive(UninstallArchiveCreator.java:317)
        at com.sun.install.products.UninstallUnit.install(UninstallUnit.java:740)
        at com.sun.install.products.Product.performInstallation(Product.java:649)
        at com.sun.install.tasks.ProductTask.perform(ProductTask.java:153)
        at com.sun.wizards.core.Sequence.perform(Sequence.java:343)
        at com.sun.wizards.core.SequenceManager.run(SequenceManager.java:226)
        at java.lang.Thread.run(Thread.java:619)

Turns out this is due to the installer not being JRE1.6 compatible. Switch to the supplied 1.5 JRE with:

# rm /usr/java
# ln -s jdk/jdk1.5.0_11 /usr/java

Comments

    Leave a comment