Stuti, define in CLASSPATH="…." only the jars you really need for. An export of all jars in a given directory is a red flag (done with *.jar).
- Alex On Jan 6, 2012, at 7:23 AM, M. C. Srivas wrote: > > unique: 1, error: 0 (Success), outsize: 40 > unique: 2, opcode: GETATTR (3), nodeid: 1, insize: 56 Error occurred during > initialization of VM > java/lang/NoClassDefFoundError: java/lang/Object > > Exported Environment Variable: > > CLASSPATH="/root/FreshMount/hadoop-0.20.2/lib/*.jar:/root/FreshMount/hadoop-0.20.2/*.jar:/usr/bin/java:/usr/local/lib:/usr/lib:/usr/:/usr/java/jdk1.6.0_26/jre/lib/rt.jar:/usr/java/jdk1.6.0_26/jre/lib/" > > > CLASSPATH is a list of jars, not a list of directories > > > I know that this is simple Java Classpath Error but I have set JAVA_HOME > correctly. > > [root@slave ~]# which java > /usr/bin/java >
