Sun Studio Installation Fails With java.lang.ClassNotFoundException (Doc ID 1341415.1)

Last updated on AUGUST 03, 2016

Applies to:

Oracle Solaris Studio - Version Forte Developer 6 Update 2 to Sun Studio 12 [Release 6.0 to 12]
Information in this document applies to any platform.

Symptoms

Sun Studio installation fails with a java.lang.NoClassDefFoundError or a java.lang.ClassNotFoundException.

Example such error messages:

Java 1.3.1, Sun Studio 11 installer:

java.lang.NoClassDefFoundError: java/util/regex/PatternSyntaxException
        at java.lang.Class.getField0(Native Method)
        at java.lang.Class.getDeclaredField(Class.java:1108)
        at java.io.ObjectStreamClass$1.run(ObjectStreamClass.java:295)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.io.ObjectStreamClass.init(ObjectStreamClass.java:288)
        at java.io.ObjectStreamClass.lookupInternal(ObjectStreamClass.java:107)
        at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:54)
        at java.io.ObjectStreamClass.lookupInternal(ObjectStreamClass.java:83)
        at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:54)
        at java.io.ObjectStreamClass.lookupInternal(ObjectStreamClass.java:83)
        at java.io.ObjectStreamClass.setClass(ObjectStreamClass.java:561)
        at java.io.ObjectInputStream.inputClassDescriptor(ObjectInputStream.java:931)
        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:361)
        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:231)
        at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1181)
        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:381)
        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:231)
        at java.util.Hashtable.readObject(Hashtable.java:794)
        at java.lang.reflect.Method.invoke(Native Method)
        at java.io.ObjectInputStream.invokeObjectReader(ObjectInputStream.java:2209)
        at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1406)
        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:381)
        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:231)
        at com.sun.wizards.core.GenericWizardState.setWizardState(GenericWizardState.java:1857)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.sun.wizards.core.ArchiveReader.callObjectMethod(ArchiveReader.java:1417)
        at com.sun.wizards.core.ArchiveReader.<init>(ArchiveReader.java:287)
        at com.sun.forte.install.tasks.AddChildWizardTask.fetchChildWizards(AddChildWizardTask.java:139)
        at com.sun.forte.install.tasks.AddChildWizardTask.perform(AddChildWizardTask.java:81)
        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:479)


Java 1.2.2, Sun Studio 11 installer:

Could not find class during deserialization of the WizardState:java.lang.ClassNotFoundException: com.sun.install.products.Product
java.lang.ClassNotFoundException: com.sun.install.products.Product
        at java.lang.Throwable.fillInStackTrace(Native Method)
        at java.lang.Throwable.fillInStackTrace(Compiled Code)
        at java.lang.Throwable.<init>(Compiled Code)
        at java.lang.Exception.<init>(Compiled Code)
        at java.lang.ClassNotFoundException.<init>(Compiled Code)
        at java.io.ObjectInputStream.inputObject(Compiled Code)
        at java.io.ObjectInputStream.readObject(Compiled Code)
        at java.io.ObjectInputStream.readObject(Compiled Code)
        at java.util.Hashtable.readObject(Compiled Code)
        at java.lang.reflect.Method.invoke(Native Method)
        at java.lang.reflect.Method.invoke(Compiled Code)
        at java.io.ObjectInputStream.invokeObjectReader(Compiled Code)
        at java.io.ObjectInputStream.inputObject(Compiled Code)
        at java.io.ObjectInputStream.readObject(Compiled Code)
        at java.io.ObjectInputStream.readObject(Compiled Code)
        at com.sun.wizards.core.GenericWizardState.setWizardState(Compiled Code)
        at java.lang.reflect.Method.invoke(Native Method)
        at java.lang.reflect.Method.invoke(Compiled Code)
        at com.sun.wizards.core.ArchiveReader.callObjectMethod(Compiled Code)
        at com.sun.wizards.core.ArchiveReader.<init>(Compiled Code)
        at com.sun.forte.install.tasks.AddChildWizardTask.fetchChildWizards(Compiled Code)
        at com.sun.forte.install.tasks.AddChildWizardTask.perform(Compiled Code)
        at com.sun.wizards.core.Sequence.perform(Compiled Code)
        at com.sun.wizards.core.SequenceManager.run(Compiled Code)
        at java.lang.Thread.run(Thread.java:472)



Error message when Java 6 is used to install Sun Studio 8:

Exception in thread "Thread-17" 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 java.awt.Panel.<init>(Panel.java:48)
         at java.awt.Panel.<init>(Panel.java:40)
         at com.sun.wizards.core.WizardComponent.<init>(WizardComponent.java:149)
         at com.sun.wizards.core.WizardComponent.<init>(WizardComponent.java:136)
         at com.sun.wizards.core.WizardLeaf.<init>(WizardLeaf.java:71)
         at com.sun.install.panels.ComponentPanel.<init>(ComponentPanel.java:136)
         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:735)
         at com.sun.install.products.Product.performInstallation(Product.java:651)
         at com.sun.install.tasks.ProductTask.perform(ProductTask.java:191)
         at com.sun.wizards.core.Sequence.perform(Sequence.java:336)
         at com.sun.wizards.core.SequenceManager.run(SequenceManager.java:226)
         at java.lang.Thread.run(Thread.java:619)

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms