Sun Studio 11 Installation - NoClassDefFound Error

Hi,

I'm new to solaris. Sorry if my question is very basic.

I'm installing the Sun studio 11 on a Solaris 8 platform.

I have installed the j2sdk1.4.2_12 prior to my Sun Studio installation.

When I start the studio installation it gives me the following error. I tried searching on the net and found that I have to specify some CLASSPATH. I don't know which path to specify as CLASSPATH so have specified the root dir itself in the CLASSPATH. Please let me know what has to be done. Thanks in advance

errorjava.lang.NoClassDefFoundError

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

at java.lang.Class.forName(Class.java:141)

at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvi

ronment.java:62)

at java.awt.Font.initializeFont(Font.java:308)

at java.awt.Font.<init>(Font.java:344)

at javax.swing.plaf.metal.DefaultMetalTheme$FontDelegate.getFont(Default

MetalTheme.java:195)

at javax.swing.plaf.metal.DefaultMetalTheme.getFont(DefaultMetalTheme.ja

va:153)

at javax.swing.plaf.metal.DefaultMetalTheme.getControlTextFont(DefaultMe

talTheme.java:129)

at javax.swing.plaf.metal.MetalLookAndFeel$FontActiveValue.createValue(M

etalLookAndFeel.java:1399)

at javax.swing.UIDefaults.getFromHashtable(UIDefaults.java:201)

at javax.swing.UIDefaults.get(UIDefaults.java:131)

at javax.swing.MultiUIDefaults.get(MultiUIDefaults.java:44)

at javax.swing.UIDefaults.getFont(UIDefaults.java:351)

at javax.swing.UIManager.getFont(UIManager.java:491)

at javax.swing.LookAndFeel.installColorsAndFont(LookAndFeel.java:89)

at javax.swing.plaf.basic.BasicButtonUI.installDefaults(BasicButtonUI.ja

va:124)

at javax.swing.plaf.metal.MetalButtonUI.installDefaults(MetalButtonUI.ja

va:53)

at javax.swing.plaf.basic.BasicButtonUI.installUI(BasicButtonUI.java:60)

at javax.swing.JComponent.setUI(JComponent.java:449)

at javax.swing.AbstractButton.setUI(AbstractButton.java:1616)

at javax.swing.JButton.updateUI(JButton.java:119)

at javax.swing.AbstractButton.init(AbstractButton.java:1952)

at javax.swing.JButton.<init>(JButton.java:109)

at javax.swing.JButton.<init>(JButton.java:82)

at com.sun.forte.install.panels.FDWelcomePanel.createUI(FDWelcomePanel.j

ava:190)

at com.sun.wizards.core.WizardComponent.beginDisplay(WizardComponent.jav

a:371)

at com.sun.wizards.core.IteratorLayout.wrapperBeginDisplay(IteratorLayou

t.java:779)

at com.sun.wizards.core.IteratorLayout.displayCurrentPanel(IteratorLayou

[2677 byte] By [Josh_0005] at [2007-11-26 10:18:39]
# 1

Which command are you using to bring up the installer?

You might need to do the following:

1) Find out the JDK version in your root PATH

# java -version

If the installedj2sdk1.4.2_12 isn't in the PATH then, set the PATH variable.

#setenv PATH /path_to_j2sdk1.4.2_12/bin:$PATH

2) If you are using the GUI you would might to set the DISPLAY variable as well if you

are logged in remotely.

OR

For command line installation, (./installer -nodisplay), please try the following instead:

a) ./cd CD1

./installer -nodisplay

akumta at 2007-7-7 2:15:10 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 2

Is there any further assistance anyone can offer with this? I'm having the exact same problem.

java -version shows 1.4.2_04 just as expected.

I'm running ./installer -nodisplay from the CD1 directory to do a command line installation. Getting the exact NoClassDefFoundError that the original poster describes.

This is on a Solaris 8 SPARC machine.

- Michael

mwelch at 2007-7-7 2:15:10 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 3

Michael,

Could you please again verify with ./installer -nodisplay after you cd to CD1?

I can reproduce the exactly same error if I bring up ./installer but it seems to go fine if I bring up ./installer -nodisplay.

# ./installer

java.lang.NoClassDefFoundError

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

at java.lang.Class.forName(Class.java:141)

at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.ja va:62)

at java.awt.Font.initializeFont(Font.java:308)

at java.awt.Font.<init>(Font.java:344)

<snipped>

## ./installer -nodisplay

Welcome to the Install Wizard for Sun Studio 11 developer tools, an integrated

set of tools for the development and deployment of enterprise-class

applications.

<snipped>

akumta at 2007-7-7 2:15:10 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 4
I have the same probleme...Running the [b]./CD1/installer -nodisplay[/b] had solve my problem.Thanks to akumta !!
Djoolien at 2007-7-7 2:15:10 > top of Java-index,Development Tools,Solaris and Linux Development Tools...