ERROR: "java.lang.NoClassDefFoundError:java/lang/StringBuilder"

  • 7002647
  • 13-Feb-2009
  • 27-Apr-2012

Environment

Novell Open Enterprise Server 2 (Linux based)
Novell ConsoleOne 1.3.6
Novell eDirectory 8.8 for Linux

Situation

Configuration:
Upgraded OES2 ( Linux Based )  to OES2 Support Pack 1
eDirectory upgraded from 8.8 SP2 to 8.8 SP4
Symptom:
Unable to launch ConsoleOne
"ERROR: java.lang.NoClassDefFoundError: java/lang/StringBuilder" while launching ConsoleOne

Resolution

1. Launch a Terminal and login as Root
2. Give "Write " permission to Root user for ConsoleOne startup script.
chmod u+w /usr/ConsoleOne/bin/ConsoleOne 
3. Define the variable "C1_JRE_HOME" in ConsoleOne startup script as follows,
export  C1_JRE_HOME=/usr/lib/jvm/jre-1.5.0-ibm 
4. Save the file and exit
5. Remove the "Write" permission for ConsoleOne startup script
chmod u-w /usr/ConsoleOne/bin/ConsoleOne 

Additional Information

Note: 
On a 64 bit OES2 Linux, if you get the following error when starting ConsoleOne,
ERROR: "java.lang.UnsatisfiedLinkError: JClient (/opt/novell/eDirectory/lib/libjClient.so wrong ELF class : ELFCLASS32)"
 
Ensure that point the variable "C1_JRE_HOME" to /usr/lib/jvm/jre-1.5.0-ibm instead of  /usr/lib64/jvm/jre-1.5.0-ibm