Oracle Database Installation – java.lang.NoClassDefFoundError

I was doing some new database deployment recently and I hit this very interesting error below.

Starting Oracle Universal Installer…

Checking Temp space: must be greater than 180 MB. Actual 2047 MB Passed
Checking swap space: must be greater than 150 MB. Actual 36785 MB Passed
Checking monitor: must be configured to display at least 256 colors. Actual 65536 Passed

Preparing to launch Oracle Universal Installer from /tmp/OraInstall2013-01-02_11-21-33AM. Please wait … 

oracle@hostname:>> Exception in thread “main” java.lang.NoClassDefFoundError

at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at java.awt.Toolkit$2.run(Toolkit.java:821)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:804)
at com.jgoodies.looks.LookUtils.isLowResolution(Unknown Source)
at com.jgoodies.looks.LookUtils.<clinit>(Unknown Source)
at com.jgoodies.looks.plastic.PlasticLookAndFeel.<clinit>(PlasticLookAndFeel.java:122)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:242)
at javax.swing.SwingUtilities.loadSystemClass(SwingUtilities.java:1783)
at javax.swing.UIManager.setLookAndFeel(UIManager.java:480)
at oracle.install.commons.util.Application.startup(Application.java:758)
at oracle.install.commons.flow.FlowApplication.startup(FlowApplication.java:164)
at oracle.install.commons.flow.FlowApplication.startup(FlowApplication.java:181)

The error message shown is really misleading. This has got nothing to do with missing Java classes. It can be easily solved by running the command.  I used Solaris projects to manage users resources. group.dba is the project group that includes oracle user.

projmod -sK “process.max-file-descriptor=(priv,65536,deny)” group.dba

P.S: Happy New Year and all the best for 2013!

Advertisements
  1. #1 by aravind on July 8, 2013 - 08:07

    it showing bash command not found

    • #2 by Wei Shan on July 11, 2013 - 14:20

      Hi Aravind,

      Are you using Solaris 10? Ensure your root user has got the path to projmod.

      which projmod should return the location of the file.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: