3 Replies Latest reply on Apr 29, 2004 5:22 AM by seagull

    Start-up error: java/lang/NoClassDefFoundError: java/lang/Ob

    seagull

      I've just installed j2sdk1.4.2_04 on my Linux box and tried to restart Jboss. It comes to an abrupt halt with the error;

      Error occurred during initialization of VM
      java/lang/NoClassDefFoundError: java/lang/Object

      Does anyone know what the problem is? I've searched the forums without success so I'm guessing there must be an embarrissingly easy answer?

      (Jboss was previously working with jdk1.3.1_08)

      My Jboss environment variables are:
      JBOSS_HOME: /home/weather/jboss-3.2.2
      JAVA: /usr/java/j2sdk1.4.2_04/bin/java
      JAVA_OPTS: -Dprogram.name=run.sh
      CLASSPATH: /home/weather/jboss3.2.2/bin/run.jar:/usr/java/j2sdk1.4.2_04/lib/tools.jar

      Any help will be much appreciated. Thanks.

        • 1. Re: Start-up error: java/lang/NoClassDefFoundError: java/lan
          seagull

          Help! I still can't figure this one out.

          Surely someone must have an idea?

          Perhaps its a bug?

          • 2. Re: Start-up error: java/lang/NoClassDefFoundError: java/lan
            darranl

            I haven't tried 1.4.2_04 on linux yet but previous 1.4.2 versions worked fine.

            It sounds more like your JDK installation has gone wrong, have you checked all of your environment variables to make sure the old JDK is not referenced anywhere and to make sure that the new one is correctly referenced?

            What is your JAVA_HOME variable set to?

            • 3. Re: Start-up error: java/lang/NoClassDefFoundError: java/lan
              seagull

              Thanks - you were definitely on the right lines.

              When I installed j2sdk1.4.2 I copied the bin file into /usr/java and ran it from there as root.

              I compared some of the file permissions with those in my old (working) jdk1.3.1 version and noticed some differences. Several of the .jar files in the new version had -rw------ permissions whereas they had -rw-r--r- in the jdk1.3.1 version.

              I've just run the j2sdk1.4.2 bin file in my local directory, set the environment variables accordingly and have now successfully started JBoss.